12.02.2013, 23:15
pawn Код:
CMD:equipar(playerid,params[])
{
new id;
new nome[MAX_PLAYER_NAME];
new msg[128];
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000AA,"comando apenas pra administrador rcon");
if(sscanf(params,"u",id)) return SendClientMessage(playerid,0xFF0000AA,"ERRO,comando correto й /equipar [id]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,0xFF0000AA,"ERRO player nгo conectado");
SetPlayerHealth(playerid,100);
GivePlayerWeapon(playerid,24,100);
SetPlayerArmor(playerid,100);
GetPlayerName(playerid,nome,sizeof(nome));
format(msg,128,"%s te equipou com armas,vida e colete",nome);
SendClientMessage(playerid,0x33AA33AA,msg);
return true;
}
mas olha o erro que dб no pawn;
PHP код:
C:\Users\Vitor\Downloads\Server Gta Torcidas\gamemodes\gt.pwn(383) : error 017: undefined symbol "SetPlayerArmor"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.