Multiple commands for same thing
#1

Hey,

Im creating a vehicle command where player does /v [option]. One of the options is park, and I want to player to be able to type /v park or /v p (which would both do the same thing), but with my code, only park works.

Код:
//This works well:
CMD:vehicle(playerid,params[])
{
	new option[10];
	new vehoption;
	if(sscanf(params,"s[10]",option))


//this works only for park (not p)
if(!strcmp(option,"p",true)||!strcmp(option,"park",true))
do you know whats happening?
Reply


Messages In This Thread
Multiple commands for same thing - by PDChaseOfficial - 16.01.2013, 16:55
Re: Multiple commands for same thing - by LarzI - 16.01.2013, 17:01
Re: Multiple commands for same thing - by PDChaseOfficial - 16.01.2013, 17:58
Re: Multiple commands for same thing - by LarzI - 16.01.2013, 17:59
Re: Multiple commands for same thing - by Threshold - 16.01.2013, 18:02
Re: Multiple commands for same thing - by PDChaseOfficial - 16.01.2013, 18:12
Re: Multiple commands for same thing - by SuperViper - 16.01.2013, 19:31
Re: Multiple commands for same thing - by Threshold - 16.01.2013, 20:26

Forum Jump:


Users browsing this thread: 1 Guest(s)