How would I make this work?
#2

pawn Код:
if(params == "health" && SDay == "health) return SendClientMessage(playerid, COLOR_GREY, "The day is already on day of good health.");
should be

pawn Код:
if(!strcmp(params, "health", true) || !strcmp(params, "SDay", true)) return SendClientMessage(playerid, COLOR_GREY, "The day is already on day of good health.");
You can't use string as integer.

So you have to use string comparer (strcmp).
Reply


Messages In This Thread
How would I make this work? - by grantism - 13.10.2012, 23:21
Re: How would I make this work? - by JaKe Elite - 14.10.2012, 01:15
Re: How would I make this work? - by grantism - 14.10.2012, 01:37
Re: How would I make this work? - by JaKe Elite - 14.10.2012, 01:38
Re: How would I make this work? - by Emmet_ - 14.10.2012, 01:39
Re: How would I make this work? - by grantism - 14.10.2012, 02:07

Forum Jump:


Users browsing this thread: 1 Guest(s)