Command Causing Server Crash
#5

Use this.

PHP код:
COMMAND:asay(playeridparams[])
{
    if(
level[playerid] != 6) return SendClientMessage(playerid,COLOR_RED,"You are not admin level 6");
    new 
pidtowhat[64];
    if(
sscanf(params"us[64]"pidtowhat)) return SendClientMessage(playeridCOLOR_RED"Usage: /asay [PlayerID] [Text]");
    
    new 
string[128];
    
format(stringsizeof(string), "%s"towhat);
    
SendClientMessage(pid,COLOR_REDstring);
    return 
true;

EDIT: Fixed the pid. Forgot to add it
Reply


Messages In This Thread
Command Causing Server Crash - by SupperRobin6394 - 22.12.2015, 21:54
Re: Command Causing Server Crash - by saffierr - 22.12.2015, 22:05
Re: Command Causing Server Crash - by J0sh... - 22.12.2015, 22:12
Re: Command Causing Server Crash - by SupperRobin6394 - 22.12.2015, 22:22
Re: Command Causing Server Crash - by TwinkiDaBoss - 22.12.2015, 22:26
Re: Command Causing Server Crash - by SupperRobin6394 - 22.12.2015, 22:39
Re: Command Causing Server Crash - by TwinkiDaBoss - 22.12.2015, 22:43
Re: Command Causing Server Crash - by SupperRobin6394 - 22.12.2015, 22:51
Re: Command Causing Server Crash - by TwinkiDaBoss - 22.12.2015, 23:00

Forum Jump:


Users browsing this thread: 2 Guest(s)