DCMD, Check if something is entered behind the params - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: DCMD, Check if something is entered behind the params (
/showthread.php?tid=71584)
DCMD, Check if something is entered behind the params -
Robbin237 - 02.04.2009
Im making a location command, but i want to check if something is entered using the params. If not, then display a message..Can somebody help me?
This is my code for now:
pawn Код:
dcmd_loc(playerid, params[])
{
GetPlayer2DZone(playerid, Zone, MAX_ZONE_NAME);
SendClientMessage(playerid, COLOR_GREY, Zone);
return 1;
}
Thnx
Re: DCMD, Check if something is entered behind the params -
Norn - 02.04.2009
pawn Код:
if (params[0]=='\0') return SendClientMessage(playerid, COLOR_WHITE, "Type something you moron!");