My script loads a usage it's not supposed to load
#3

Quote:
Originally Posted by KeithCooper
Посмотреть сообщение
My mistake of I did not understood you correctly.So you want the server to NOT load that command?
this is the command:
PHP код:
COMMAND:v(playeridparams[]) { 
        if(!
Player[playerid][Authed] || Player[playerid][Admin] < 3) return SendClientError(playerid"You are not authorised to use this command."); 
        new 
tmp15 ], tmp215 ], tmp315 ], tmp415 ]; 
        if(
sscanf(params"szz"tmptmp2tmp3tmp4)) SendClientMessage(playerid, -1"{7f7f7f}Usage: {b2b2b2}/v [Create / ]"); 
        if(!
strcmp(tmp"create"true5)) 
         { 
        if(
GetPlayerInterior(playerid) > || GetPlayerVirtualWorld(playerid) > 0) return SendClientError(playerid"Please exit the interior you're currently in."); 
        new 
modelID
        if(!
strlen(tmp2)) return SendClientMessage(playerid, -1"{7f7f7f}Usage: {b2b2b2}/v create [Model]"); 
        
modelID strval(tmp2); 
        if(
modelID == -|| modelID 400 || modelID 611) return SendClientError(playerid"Model ID/Name is invalid, please try again."); 
        new 
query[500]; mysql_format(connectionquerysizeof(query), "SELECT * FROM Vehicles WHERE vActive = '0' LIMIT 1;"); mysql_tquery(connectionquery"CreateVehicle1""dd"playeridmodelID); 
        } 
        return 
1

it loads this:
PHP код:
 if(!strlen(tmp2)) return SendClientMessage(playerid, -1"{7f7f7f}Usage: {b2b2b2}/v create [Model]"); 
while it's not supposed to load it.
Why does it load the "/v create [Model]"

??
Reply


Messages In This Thread
My script loads a usage it's not supposed to load - by justjamie - 25.07.2016, 09:42
Re: My script loads a usage it's not supposed to load - by Quinncell - 25.07.2016, 09:44
Re: My script loads a usage it's not supposed to load - by justjamie - 25.07.2016, 09:45
Re: My script loads a usage it's not supposed to load - by Quinncell - 25.07.2016, 09:48
Re: My script loads a usage it's not supposed to load - by justjamie - 25.07.2016, 09:51
Re: My script loads a usage it's not supposed to load - by Quinncell - 25.07.2016, 09:54
Re: My script loads a usage it's not supposed to load - by PrO.GameR - 25.07.2016, 11:55
Re: My script loads a usage it's not supposed to load - by justjamie - 25.07.2016, 12:14
Re: My script loads a usage it's not supposed to load - by Lucaboy28 - 25.07.2016, 13:49

Forum Jump:


Users browsing this thread: 1 Guest(s)