error 017: undefined symbol "params"
#1

Код:
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
Reply
#2

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?
Reply
#3

LOL Yeah, I fogot i replaced all params with inputtext, i forgot to change my commands back!
Reply
#4

Always double, triple, check before posting...
Reply
#5

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
Reply
#6

Код:
#pragma unused params
Add to command
Reply
#7

Quote:
Originally Posted by RenisiL
Код:
#pragma unused params
Add to command
Wrong. He's actually using the params parameter.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)