Help with "Unknown Command"
#2

try this:
Код:
new Vehicle[MAX_PLAYERS]; 

COMMAND:kerr(playerid, params[]){ 
  new car; 
  new string[128]; 
  new first; 
  new second; 
  new Float:X, Float:Y, Float:Z; 
    GetPlayerPos(playerid, Float:X, Float:Y, Float:Z); 
        if(sscanf(params, "iii", car, first, second)) return SendClientMessage(playerid, 0xF0F8FFAA, "Perdorimi: /kerr [VEHICLE ID][color1][color2]"); 
            if(car < 400 || car > 611) return SendClientMessage(playerid, 0xF0F8FFAA, "ID i kerrit duhet te jete me e madhe se 399, dhe me e vogel se 612"); 
                if(Vehicle[playerid] != 0){ 
        DestroyVehicle(Vehicle[playerid]); 
    } 

    Vehicle[playerid] = CreateVehicle(car, X, Y, Z + 3.0, first, second, 1, -1); 
    format(string, sizeof(string), "Ti ke krijuar nje kerr, me id", car); 
    SendClientMessage(playerid, 0xF0F8FFAA, string); 

return 1; 
}
Reply


Messages In This Thread
Help with "Unknown Command" - by ddiioonn123 - 09.12.2018, 12:54
Re: Help with "Unknown Command" - by scripter112 - 09.12.2018, 13:48

Forum Jump:


Users browsing this thread: 2 Guest(s)