IsNull change - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: IsNull change (
/showthread.php?tid=470563)
IsNull change -
Pawnie - 18.10.2013
Is there any way to replace IsNull with something? and how..
Код:
CMD:boost(playerid, params[])
{
if(isnull(params)) return SendClientMessage(playerid, COLOR_YELLOW, "Usage: /boost [me/other]");
{
if(!strcmp(params, "me", true))
{
SetPlayerHealth(playerid, 100);
}
if(!strcmp(params, "other", true))
{
}
return 1;
}
Re: IsNull change -
PrivatioBoni - 18.10.2013
pawn Код:
if (strlen(params)==0) return SendClientMessage(playerid, COLOR_YELLOW, "Usage: /boost [me/other]");
Is this the kind of thing you mean?
Re: IsNull change -
Pawnie - 18.10.2013
Well its good but is it possible to use like Sscanf or such?
Re: IsNull change -
PrivatioBoni - 18.10.2013
pawn Код:
if(sscanf(params, "s[8]", params)) return SendClientMessage(playerid, COLOR_YELLOW, "Usage: /boost [me/other]");
Re: IsNull change -
Pawnie - 18.10.2013
Thanks!
Re: IsNull change -
PrivatioBoni - 18.10.2013
My pleasure. Hope it works as you wanted.