Jump to content

[REZOLVAT] Problema - /c


Ionut09
 Share

Recommended Posts

  • Username : Ionut09
  • Problema întâlnită: Nu apar mesajele care le scrii pe /c.
  • Detalii despre problemă: -
  • Ce ai încercat să faci înainte să postezi?: -
  • Cod sursa (recomandat pastebin.com) : 
    CMD:c(playerid, params[])
    {
    	if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi prima data.");
    	if(PlayerInfo[playerid][pClan] < 1) return SendClientMessage(playerid, COLOR_WHITE,"{FFB870}Error: Your are not in a clan.");
    	new msj[100],string[150];
        if( PlayerInfo[ playerid ][ pMuted ] ) return SendClientMessage( playerid, -1, "Ai mute." );
    	if(sscanf(params, "s[100]",msj)) return SCM(playerid,-1,"{FFFFFF}Syntax: {FFFFFF}/c <Message>");
    	format(string,sizeof(string), "{%s}[CLAN] %s %s: %s", clanVariables[ PlayerInfo[ playerid ][ pClan ] ][ clanColor ], getCRankName( playerid ), GetName( playerid ), msj );
    	SendToClan(PlayerInfo[playerid][pClan], -1, string);
    	return 1;
    }

     

  • Alte detalii : -
Link to comment
Share on other sites

stock SendToClan( clanid, color, const text[ ], va_args<> )  {
	if( clanid == 0 )
		return true;
	new string[ 256 ]; va_format( string, 256, text, va_start<3> );
	foreach( new x : Player ) { if( PlayerInfo[ x ][ pClan ] == clanid && seeClanChat[ x ] ) SendClientMessage( x, color, string ); }
	return true; }

 

Link to comment
Share on other sites

Acum 3 minute, Ionut09 a spus:

stock SendToClan( clanid, color, const text[ ], va_args<> )  {
	if( clanid == 0 )
		return true;
	new string[ 256 ]; va_format( string, 256, text, va_start<3> );
	foreach( new x : Player ) { if( PlayerInfo[ x ][ pClan ] == clanid && seeClanChat[ x ] ) SendClientMessage( x, color, string ); }
	return true; }

 

Ai verificat daca variabila seeClanChat este true pentru fiecare membru din clan?

Respecta si vei fi respectat.

 

BigInt Pawn:

Pacman C++: 

Snake C++:

Minesweeper C++:

 

mattbb.cash

leaks.ro

Link to comment
Share on other sites

Acum 23 minute, Ionut09 a spus:

variabila


seeClanChat

  e de la togc, dar eu nu vrea sa existe asa ceva, o sterg?

Daca nu te ajuta la nimic, o poti sterge..

Respecta si vei fi respectat.

 

BigInt Pawn:

Pacman C++: 

Snake C++:

Minesweeper C++:

 

mattbb.cash

leaks.ro

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...