ReloadBox Error - 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: ReloadBox Error (
/showthread.php?tid=511714)
ReloadBox Error -
BlAcKEdiTioN - 07.05.2014
C:\Users\MICASAM\Desktop\pawno\***(15095) : error 017: undefined symbol "ReLoadBox"
C:\Users\MICASAM\Desktop\pawno\***(15092) : warning 204: symbol is assigned a value that is never used: "size"
Код:
CMD:reloadbox(playerid,params[]) {
if(PlayerInfo[playerid][Level] >= 6) {
if(isnull(params)) return SendClientMessage(playerid, red, "USAGE: /reloadbox [size] use -45 for the size.");
new size = strval(params), string[128];
CMDMessageToAdmins(playerid,"RELOADBOX");
format(string,sizeof(string),"%s has reload message box.", GetName(playerid)); SendClientMessageToAll(blue,string);
return ReLoadBox(size);
} else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
}
Код:
Line 15095 = return ReLoadBox(size);
and
Код:
Line 15092 = new size = strval(params), string[128];
Re: ReloadBox Error -
Smileys - 07.05.2014
do you have any function called "ReLoadBox( size )" ?
also, for the warning; if the error is fixed, the warning will probably be gone;
Re: ReloadBox Error -
Syncro - 07.05.2014
If you don't use the variable 'size', the pawn show you the warning.
For the ReLoAdBox you must check if you have a function in the script called "ReLoAdBox", select 'Find' and type 'public ReLoAdBox' or 'stock ReLoAdBox', and look if you find any function.