SA-MP Forums Archive
showing unknown command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: showing unknown command (/showthread.php?tid=418815)



showing unknown command - Fernado Samuel - 26.02.2013

Removed, thanks for the help!


Re: showing unknown command - Blaeks - 26.02.2013

It happens to you when you call the command array field that does not exist.. just ignore it


Re: showing unknown command - Gamer_007 - 26.02.2013

pawn Код:
CMD:rac(playerid,params[]) {
    if(PlayerInfo[playerid][Level] >=6)
   {
        SendClientMessage(playerid,COLOR_WHITE," All empty cars were respawned !");
        for(new v=0;v<MAX_VEHICLES;v++)
        {
        if(!IsVehicleOccupied(v)) EraseVehicle(v);
        return 1;
        }
        else
        {
        SendClientMessage(playerid, red, "ERROR: You must be admin to use this command!");
        }
        return 1;
}
Maybe it works


Re: showing unknown command - DaRk_RaiN - 26.02.2013

pawn Код:
CMD:rac(playerid,params[]) {
    if(PlayerInfo[playerid][Level] >=6) {
        SendClientMessage(playerid,COLOR_WHITE," All empty cars were respawned !");
        for(new v=0;v<MAX_VEHICLES;v++) if(!IsVehicleOccupied(v)) EraseVehicle(v); return 1;}
    else {
        SendClientMessage(playerid, red, "ERROR: You must be admin to use this command!");}
        return 1;}



Re : showing unknown command - yusei - 26.02.2013

PHP код:
CMD:rac(playerid,params[])
{
    if(
PlayerInfo[playerid][Level] >=6)
    {
        
SendClientMessage(playerid,COLOR_WHITE," All empty cars were respawned !");
        for(new 
v=0;v<MAX_VEHICLES;v++)
        {
              if(!
IsVehicleOccupied(v))
             {
                 
EraseVehicle(v);
                  return 
1;
              }
        }
      else if(
PlayerInfo[playerid][Level] < 6)
      {
        
SendClientMessage(playeridred"ERROR: You must be admin to use this command!");
        return 
1;
    }




Re: showing unknown command - Fernado Samuel - 26.02.2013

Still not working.


Re: showing unknown command - Fernado Samuel - 26.02.2013

DUMP