How do i lost this errors?
#1

Код 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.");
}
Reply
#2

I have tried but idk how to fix it? O_o
Reply
#3

Please help me sorry for spamming i really need the help :/??
Reply
#4

Change:
pawn Код:
VipHealth(id, hp);
To:
pawn Код:
SetPlayerHealth(id, hp);
--

As for the 'vheal' error, I cannot assume anything without seeing the code.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)