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

pawn Код:
COMMAND:asay(playerid, params[])
{
    new message[256], pName[MAX_PLAYER_NAME];
    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, pName, sizeof(pName));
    format(message, sizeof(message), "Admin %s(%d): %s", pName,  playerid, params);
    SendClientMessageToAll(0xFFC0CBAA, message);
    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)