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

PHP код:
COMMAND:asay(playeridparams[])
{
    new 
Announce[35];
    if(
sscanf(params"s[35]"Announce)) 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(playeridpInfo[playerid][Nick], 20);
    
format(stringSOS"Admin %s: %s"pInfo[playerid][Nick], playeridAnnounce);
    
SendClientMessageToAll(0xFFC0CBAAstring);
    return 
1;

Uhm..the code shows no errors while compiling but some weird effects IG. How to fix ?
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)