error 017: undefined symbol "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: error 017: undefined symbol "params" (
/showthread.php?tid=134313)
error 017: undefined symbol "params" -
Torran - 16.03.2010
Код:
C:\Users\Torran\Desktop\tRoleplay\filterscripts\tadmin.pwn(151) : error 017: undefined symbol "params"
C:\Users\Torran\Desktop\tRoleplay\filterscripts\tadmin.pwn(180) : error 017: undefined symbol "params"
C:\Users\Torran\Desktop\tRoleplay\filterscripts\tadmin.pwn(207) : error 017: undefined symbol "params"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Errors.
LINE 151:
pawn Код:
if(sscanf(params, "uz", targetid, reason)) return SendClientMessage(playerid, COLOR_RED, "Usage: /kick [PlayerID/PartOfName] [Reason]");
LINE 180:
pawn Код:
if(sscanf(params, "uz", targetid, reason)) return SendClientMessage(playerid, COLOR_RED, "Usage: /ban [PlayerID/PartOfName] [Reason]");
LINE 207:
pawn Код:
if(sscanf(params, "ud", targetid, level)) return SendClientMessage(playerid, COLOR_RED, "Usage: /setlevel [PlayerID/PartOfName] [Level]");
It worked before and i accidently changed something but changed it back and the error suddenly appeared,
Any ideas on whats wrong?
Im using the sscanf 2.0 plugin thing
Re: error 017: undefined symbol "params" -
itspartytiem - 16.03.2010
https://sampwiki.blast.hk/wiki/Fast_Commands#sscanf
It's probably the line above that which is causing the problem;
Код:
dcmd_heal(playerid, params[])
Do you have something similar to this?
Re: error 017: undefined symbol "params" -
Torran - 16.03.2010
LOL Yeah, I fogot i replaced all params with inputtext, i forgot to change my commands back!
Re: error 017: undefined symbol "params" -
Niixie - 16.03.2010
Always double, triple, check before posting...
Re: error 017: undefined symbol "params" -
Ozz - 16.03.2010
Quote:
Originally Posted by Niixie
Always double, triple, check before posting...
|
Usually errors are easy but you dont notice them b4 someone reminds you of some tiny tiny thing that could be the prob
Re: error 017: undefined symbol "params" -
RenisiL - 16.03.2010
Код:
#pragma unused params
Add to command
Re: error 017: undefined symbol "params" -
Correlli - 16.03.2010
Quote:
Originally Posted by RenisiL
Код:
#pragma unused params
Add to command
|
Wrong. He's actually using the
params parameter.