Unknown Command
#1

Sscanf works probably and it sends the message with the correct usage but when I write the correct usage it gives me server unknown command?!
PHP код:
CMD:createcar(playeridparams[])
{
    new 
modelprice;
    if(
PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playeridCOLOR_RED"Command not found on the server! /help");
    if(
sscanf(params,"ii",modelprice)) return SendClientMessage(playeridCOLOR_RED"Create For-Sale Car: /createcar [Modelid] (Price)");
    if(
model 400 || model 611) return SendClientMessage(playeridCOLOR_RED"Car's modelid can't be less than 400 or more than 611!");
    
cAutoIncrease++;
    new 
check[128];
    
format(checksizeof(check), "SELECT * FROM cars WHERE id='%i'",cAutoIncrease);
    
mysql_query(1check);
    new 
TestID cache_get_row_count();
    if(
TestID 0) return SendClientMessage(playeridCOLOR_RED"ID is already exist!");
    new 
Float:xFloat:yFloat:zFloat:a;
    
GetPlayerPos(playeridxyz);
    
GetPlayerFacingAngle(playerida);
    new 
vehicle CreateVehicle(modelidx+2yza, -1, -1, -10);
    
BSI[vehicle] = price;
    
PutPlayerInVehicle(playeridvehicle0);
    return 
1;

Reply


Messages In This Thread
Unknown Command - by nezo2001 - 28.08.2015, 20:20
Re: Unknown Command - by nezo2001 - 29.08.2015, 11:22
Re: Unknown Command - by Finn707 - 29.08.2015, 11:55
Re: Unknown Command - by nezo2001 - 29.08.2015, 12:35
Re: Unknown Command - by R0 - 29.08.2015, 12:54
Re: Unknown Command - by nezo2001 - 29.08.2015, 14:07

Forum Jump:


Users browsing this thread: 1 Guest(s)