zcmd sscanf problem
#9

Quote:
Originally Posted by Jochemd
Посмотреть сообщение
Hmm okay, let's try it another way: check if the params are OK, instead of checking they're not ok

pawn Код:
if(!sscanf,blahblah) {
This means you need to execute the code if it's correct, and return under the code if not correct

pawn Код:
}
else return SendClientMessage(playerid,COLOR,"Error message here")
Talk english here, please.
That would return the error message on sucess. '!' = if not something so else would return the sucess, he used it good. Correct me if im wrong.

You can also:

pawn Код:
if(sscanf(params, "u", example)) return SendClientMessage(playerid, color, "Error");
Reply


Messages In This Thread
zcmd sscanf problem - by Dragony92 - 06.07.2011, 07:05
Re: zcmd sscanf problem - by Rob_Zero - 06.07.2011, 07:52
Re: zcmd sscanf problem - by *IsBack - 06.07.2011, 07:54
Re: zcmd sscanf problem - by Jochemd - 06.07.2011, 08:41
Re: zcmd sscanf problem - by Dragony92 - 06.07.2011, 08:42
Re: zcmd sscanf problem - by Jochemd - 06.07.2011, 08:52
Re: zcmd sscanf problem - by Rob_Zero - 06.07.2011, 08:54
Re: zcmd sscanf problem - by Dragony92 - 06.07.2011, 08:59
Re: zcmd sscanf problem - by Markx - 06.07.2011, 09:11
Re: zcmd sscanf problem - by Dragony92 - 06.07.2011, 09:14

Forum Jump:


Users browsing this thread: 2 Guest(s)