[ZCMD] Need help with making cmds with params
#1

pawn Код:
CMD:lossantos(playerid, params[])
{
    new option[20];
    if(isnull(params)) return SendClientMessage(playerid, RED, "USAGE: /lossantos [SantaBeach/Airport/Mullholand/UnityStation/GroveStreet]");
   
    if(!strcmp(option, "SantaBeach", true)) return cmd_santambeach(playerid,params);
    if(!strcmp(option, "Airport", true)) return cmd_lsairport(playerid,params);
    if(!strcmp(option, "Mullholand", true)) return cmd_mullholand(playerid,params);
    if(!strcmp(option, "UnityStation" , true)) return cmd_unitystation(playerid,params);
    if(!strcmp(option, "GroveStreet" , true)) return cmd_grovestreet(playerid,params);
    return 1;
}
All strcmp options return only SantaBeach :/
Reply


Messages In This Thread
[ZCMD] Need help with making cmds with params - by Gangs_Rocks - 29.05.2012, 06:42
Re: [ZCMD] Need help with making cmds with params - by JaKe Elite - 29.05.2012, 07:17

Forum Jump:


Users browsing this thread: 3 Guest(s)