#1

Код:
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"

Reply
#2

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)