03.03.2014, 08:34
Код 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.
Код 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."); }