17.05.2015, 19:19
Whats wrong 0 error on pawno compile but when i try it doesen't work
public OnPlayerText(playerid, text[])
{
new string[256];
if(text[0] == '@' && PlayerInfo[playerid][Admin] >= 1)
{
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
format(string,sizeof(string),"[{FFFFFF}ADMINCHAT{8080FF}] %s(%d): %s",playername,playerid,text[1]);
SendMessageToGangMembers(PlayerInfo[playerid][Admin],string);
}
return 0;
}
forward SendMessageToGangMembers(colore,const string[]);
public SendMessageToGangMembers(colore,const string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1)
if(PlayerInfo[i][Admin] >= 1)
SendClientMessage(i, colore, string);
}
return 1;
}
public OnPlayerText(playerid, text[])
{
new string[256];
if(text[0] == '@' && PlayerInfo[playerid][Admin] >= 1)
{
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
format(string,sizeof(string),"[{FFFFFF}ADMINCHAT{8080FF}] %s(%d): %s",playername,playerid,text[1]);
SendMessageToGangMembers(PlayerInfo[playerid][Admin],string);
}
return 0;
}
forward SendMessageToGangMembers(colore,const string[]);
public SendMessageToGangMembers(colore,const string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) == 1)
if(PlayerInfo[i][Admin] >= 1)
SendClientMessage(i, colore, string);
}
return 1;
}