SA-MP Forums Archive
Help - 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: Help (/showthread.php?tid=446215)



Help - CurlyPwn - 25.06.2013

Код:
if(sscanf(params, "ud", giveplayerid, division))
			{
				SendClientMessage(playerid, COLOR_WHITE, "USAGE: /LSPDdiv [playerid] [division]");
				SendClientMessage(playerid, COLOR_GRAD2, "Available division names: 1 (None), 2 (Detective), 3 (SWAT), 4 (Motorcycle)");
				return 1;
			}
there is a error im not using dcmd and dont know what to change please help.

Quote:

error 017: undefined symbol "params"




Re: Help - martin3644 - 25.06.2013

pawn Код:
if(sscanf(params, "ud", giveplayerid, division))
            {
                SendClientMessage(playerid, COLOR_WHITE, "USAGE: /LSPDdiv [playerid] [division]");
                SendClientMessage(playerid, COLOR_GRAD2, "Available division names: 1 (None), 2 (Detective), 3 (SWAT), 4 (Motorcycle)");
                return 1;
            }
Put #pragma unused params there like this...

pawn Код:
if(sscanf(params, "ud", giveplayerid, division))
{
#pragma unused params
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /LSPDdiv [playerid] [division]");
SendClientMessage(playerid, COLOR_GRAD2, "Available division names: 1 (None), 2 (Detective), 3 (SWAT), 4 (Motorcycle)");
return 1;
}