PDA

View Full Version : ReloadBox Error


BlAcKEdiTioN
07/05/2014, 03:16 AM
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];

Smileys
07/05/2014, 11:20 AM
do you have any function called "ReLoadBox( size )" ?

also, for the warning; if the error is fixed, the warning will probably be gone;

Syncro
07/05/2014, 12:14 PM
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.