How do i lost this errors? - 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: How do i lost this errors? (
/showthread.php?tid=498388)
How do i lost this errors? -
JackieJ - 03.03.2014
Код HTML:
C:\Users\JACOLA03\Desktop\war thunder\gamemodes\warthunder.pwn(980) : error 017: undefined symbol "VipHealth"
C:\Users\JACOLA03\Desktop\war thunder\gamemodes\warthunder.pwn(1189) : warning 203: symbol is never used: "vheal"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Script:
Код HTML:
COMMAND:viphealth(playerid, params[])
{
new id;
new hp;
if(IsPlayerConnected(id))
{
if(PlayerInfo[playerid][VipLevel] >= 1)
{
if(!sscanf(params, "ui", id, hp))
{
if(hp <= 100)
{
new string[64];
new name[MAX_PLAYER_NAME], PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(id, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "You are vip %s , You have healed yourself! %d", name, hp);
SendClientMessage(id, 0xD8D8D8FF, string);
format(string, sizeof(string), "You Setted %s Health To %d.", PlayerName, hp);
SendClientMessage(playerid, 0xD8D8D8FF, string);
VipHealth(id, hp);
return 1;
}
else return SendClientMessage(playerid, 0xD8D8D8FF, "You can't set more than 100");
}
else return SendClientMessage(playerid, 0xD8D8D8FF, "USAGE: /vheal");
}
else return SendClientMessage(playerid, 0xD8D8D8FF, "You need to be vip to use this command!.");
}
else return SendClientMessage(playerid, 0xD8D8D8FF, "Player is not connected.");
}
Re: How do i lost this errors? -
JackieJ - 03.03.2014
I have tried but idk how to fix it? O_o
Re: How do i lost this errors? -
JackieJ - 03.03.2014
Please help me sorry for spamming i really need the help :/
??
Re: How do i lost this errors? -
Threshold - 03.03.2014
Change:
To:
--
As for the 'vheal' error, I cannot assume anything without seeing the code.