Code has errors. Any help ? [URGENT]
#2

pawn Код:
COMMAND:asay(playerid, params[])
{
    if(isnull(params)) return SendClientMessage(playerid, -1, "ERROR: The correct syntax is /asay [Message]");
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Only RCON Admins can use the command");
    GetPlayerName(playerid, pInfo[playerid][Nick], MAX_PLAYER_NAME);
    format(string, SOS, "Admin %s(%d): %s", pInfo[playerid][Nick], playerid, params);
    SendClientMessageToAll(0xFFC0CBAA, string);
    return 1;
}
Reply


Messages In This Thread
Code has errors. Any help ? [URGENT] - by Commands - 01.11.2015, 09:28
Re: Code has errors. Any help ? [URGENT] - by ATGOggy - 01.11.2015, 09:42
Re: Code has errors. Any help ? [URGENT] - by Commands - 01.11.2015, 10:09
Re: Code has errors. Any help ? [URGENT] - by ATGOggy - 01.11.2015, 10:39

Forum Jump:


Users browsing this thread: 1 Guest(s)