Why this warning? - 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: Why this warning? (
/showthread.php?tid=568972)
Why this warning? -
saffierr - 26.03.2015
Why does this give me an warning?
The warning is "symbol is never used: "heal" "
Quote:
CMD:heal(playerid, params[])
{
if(IsPlayerAdmin(playerid))
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, COLOR_GREEN, "You have been healed by an admin.");
}
else
{
SendClientMessage(playerid, -1, "SERVER:Unknown Command.");
}
return 1;
}
|
Re: Why this warning? -
Chrillzen - 26.03.2015
Search for "new heal" and remove the variable since you're not using it.
Re: Why this warning? -
saffierr - 26.03.2015
I don't get what you just said? Could you explain it more detailed, please?
Re: Why this warning? -
saffierr - 26.03.2015
Could someone explain this?
Re: Why this warning? -
maximthepain - 26.03.2015
Symbol is never used is probably because there is somewhere in your script
& you are not using it anywhere. as CMD:heal doesn't need the new heal; variable.
Give us the exact line from the error you are having and maybe we can retry to understand why this is happening.
Re: Why this warning? -
saffierr - 26.03.2015
I don't have any "new heal", in my script.
Quote:
C:\Users\anoll\Desktop\samp03z_svr_R1_win32\gamemo des\practice.pwn(23 : warning 203: symbol is never used: "heal"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Warning.
|
Re: Why this warning? -
maximthepain - 26.03.2015
Quote:
Originally Posted by saffierr
I don't have any "new heal", in my script.
|
Okay, but give line 238, use CTRL + 'G' write 238 and copy this line here.
Re: Why this warning? -
saffierr - 26.03.2015
line 238 is :
Quote:
CMD:heal(playerid, params[])
|
Re: Why this warning? -
J0sh... - 26.03.2015
Have you done #include <zcmd>?
Re: Why this warning? -
BeesSi - 26.03.2015
You probably got a "new heal;" somewhere in your script that is never used. Remove it.