Why this warning?
#1

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;
}

Reply
#2

Search for "new heal" and remove the variable since you're not using it.
Reply
#3

I don't get what you just said? Could you explain it more detailed, please?
Reply
#4

Could someone explain this?
Reply
#5

Symbol is never used is probably because there is somewhere in your script
pawn Код:
new Heal;
& 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.
Reply
#6

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.

Reply
#7

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.
Reply
#8

line 238 is :
Quote:

CMD:heal(playerid, params[])

Reply
#9

Have you done #include <zcmd>?
Reply
#10

You probably got a "new heal;" somewhere in your script that is never used. Remove it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)