ZCMD string problem
#3

Код:
CMD:clan(playerid,params[]){
if(sscanf(params,"s",TinyString)) return MSG(playerid,C_RED,"/Clan [Invite/Kick/Join/Leave/SetRank/SetTag]");
if(strval(TinyString) == strval("Invite")) return MSG(playerid,C_RED,"Invite");
else if(strval(TinyString) == strval("Kick")) return MSG(playerid,C_RED,"Kick");
return 1;}
this may work, i just used "else" in 2nd case.
Reply


Messages In This Thread
ZCMD string problem - by Lirbo - 05.05.2015, 09:28
Re: ZCMD string problem - by DarkLouis - 05.05.2015, 09:38
Re: ZCMD string problem - by Airman123 - 05.05.2015, 09:39
Re: ZCMD string problem - by Lirbo - 05.05.2015, 09:41
Re: ZCMD string problem - by DarkLouis - 05.05.2015, 09:42
Re: ZCMD string problem - by DarkLouis - 05.05.2015, 09:44
Re: ZCMD string problem - by Lirbo - 05.05.2015, 09:44
Re: ZCMD string problem - by Misiur - 05.05.2015, 09:44
Re: ZCMD string problem - by Lirbo - 05.05.2015, 09:49

Forum Jump:


Users browsing this thread: 1 Guest(s)