Undefined 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)
+--- Thread: Undefined params (
/showthread.php?tid=448237)
Undefined params -
Jermi - 03.07.2013
I have included sscanf2.inc but When i compile it gives me this
Quote:
K:\zGamingRoleplay\gamemodes\Garage.pwn(261) : error 017: undefined symbol "params"
|
Code place:
pawn Код:
new string[128], choice[32], garageid, amount;
if(sscanf(params, "s[32]dD", choice, garageid, amount))
{
SendClientMessage(playerid, 0x33AA33AA, "USAGE: /garageedit [name] [garageid] [(Optional)amount]");
SendClientMessage(playerid, 0x33AA33AA, "Available names: Exterior, Interior, Price");
return 1;
}
how to fix it? I tried to new params but ingame /garageedit doesn't work.
Re: Undefined params -
Jstylezzz - 03.07.2013
^ What ****** said. The point is, that strcmp commands don't have the 'params' parameter, y_commands and zcmd do have it. Either change the 'params' to something that strcmp commands have (can't tell you what as I don't use strcmp commands), or convert it to a y_commands/zcmd command.
Re: Undefined params -
Jermi - 03.07.2013
Yes, I am using strcmp but I must use y_commands?
Re: Undefined params -
Jermi - 03.07.2013
Thank you for helping ******, +reped