16.01.2013, 16:55
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.
do you know whats happening?
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))