how to fix this cmd its generating lots of errors
#2

PHP код:
CMD:Crash(playeridparams[])
{
    new 
string[128];
    if(
pInfo[playerid][AdminLevel] >=|| !IsPlayerAdmin(playerid)) return SendClientMessage(playeridRED,"ERROR: You need to be administrator to use this command!");
    {
        if(
sscanf(params"us[128]"params[0], params[1])) return SendClientMessage(playeridRED,"USAGE: {FFFF00}/Crash [playerid] [reason]");
       
        if ( 
IsPlayerConnectedparams] ) && params] != INVALID_PLAYER_ID && params] != playerid )
        {
            if(!
strlen(params[1]))
            {
                            
format(stringsizeof(string),"%s Has been crashed by Admin %s [no reason given]!",PlayerName2(params[0]),PlayerName2(playerid));
                            
SendClientMessageToAll(ABLUEstring);
                            
GameTextForPlayer(params[0], "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"10000);
                            
GameTextForPlayer(params[0], "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"20001);
                            
GameTextForPlayer(params[0], "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"30002);
                            
GameTextForPlayer(params[0], "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"40003);
                            
GameTextForPlayer(params[0], "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"50004);
                            
GameTextForPlayer(params[0], "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"60005);
                            
GameTextForPlayer(params[0], "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"70006);
                            } 
                            else
                            {
           
                
format(stringsizeof(string),"%s has been crashed by Admin %s [Reason: %s]"PlayerName2(params[0]), PlayerName2(playerid), params[1]);
                
SendClientMessageToAll(ABLUEstring);
                
GameTextForPlayer(params[0], "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"10000);
                
GameTextForPlayer(params[0], "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"20001);
                
GameTextForPlayer(params[0], "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"30002);
                
GameTextForPlayer(params[0], "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"40003);
                
GameTextForPlayer(params[0], "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"50004);
                
GameTextForPlayer(params[0], "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"60005);
                
GameTextForPlayer(params[0], "•¤¶§!$$%&'()*+,-./01~!@#$^&*()_-+={[}]:;'<,>.?/"70006);
                } 
                else 
                {
                
SendClientMessage(playeridRED,"ERROR Player Specified Not Online!");
            }
            return 
1;
        }
        return 
1;
    }

Try it like this
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)