Command and Parameters
#5

@GoldenLion, there's a little mistake in your code at sscanf part. INVALID_PLAYER_ID will get treated as a string, so you should have used a negative default ID as CutX did, or use the stringize operator:
Код:
if (sscanf(params, "s[10]D(" #INVALID_PLAYER_ID ")")) return SendClientMessage(playerid, -1 "usage...");
Reply


Messages In This Thread
Command and Parameters - by HidroDF - 02.01.2017, 17:07
Respuesta: Command and Parameters - by HidroDF - 02.01.2017, 18:06
Re: Respuesta: Command and Parameters - by CutX - 02.01.2017, 18:39
Re: Command and Parameters - by GoldenLion - 02.01.2017, 18:41
Re: Command and Parameters - by Spmn - 02.01.2017, 19:08
Re: Command and Parameters - by SickAttack - 02.01.2017, 20:23

Forum Jump:


Users browsing this thread: 1 Guest(s)