if(pAdmin[playerid] == 5) { { new AdminName1[MAX_PLAYER_NAME], String[50]; GetPlayerName(playerid,AdminName1,sizeof(AdminName1)); format(String,sizeof(String),"O Administrador %s Saiu do Servidor",AdminName1); GameTextForAll(String,4000,1); }
if(pAdmin[playerid] == 5) { { new AdminName1[MAX_PLAYER_NAME], String[50]; GetPlayerName(playerid,AdminName1,sizeof(AdminName1)); format(String,sizeof(String),"O Administrador %s Entrou no Servidor",AdminName1); GameTextForAll(String,4000,1); }
galera eu alguem pode ver pra mim o que ta errado , aki eu queria mostrasse essa mensagem ao entra e sair de um admin.
oneplayerdesconect Код:
if(pAdmin[playerid] == 5) { { new AdminName1[MAX_PLAYER_NAME], String[50]; GetPlayerName(playerid,AdminName1,sizeof(AdminName1)); format(String,sizeof(String),"O Administrador %s Saiu do Servidor",AdminName1); GameTextForAll(String,4000,1); } Код:
if(pAdmin[playerid] == 5) { { new AdminName1[MAX_PLAYER_NAME], String[50]; GetPlayerName(playerid,AdminName1,sizeof(AdminName1)); format(String,sizeof(String),"O Administrador %s Entrou no Servidor",AdminName1); GameTextForAll(String,4000,1); } |
if(pAdmin[playerid] == 5) {
{
(5884) :warning 219: local variable "AdminName1" shadows a variable at a preceding level (5884) : warning 219: local variable "String" shadows a variable at a preceding level (6109) : error 010: invalid function or declaration (6112) : error 021: symbol already defined: "GetPlayerName" (17166) : warning 202: number of arguments does not match definition (32743) : warning 203: symbol is never used: "AdminName1" (32743) : warning 203: symbol is never used: "String" (32743) : warning 203: symbol is never used: "objectcreatted"
if(pAdmin[playerid] == 5)
{
new qAdminName1[MAX_PLAYER_NAME], qPT[50];
GetPlayerName(playerid,qAdminName1,MAX_PLAYER_NAME);
format(qPT,sizeof(qPT),"O Administrador %s Saiu do Servidor",qAdminName1);
GameTextForAll(qPT,4000,1);
}
if(pAdmin[playerid] == 5)
{
new qAdminName1[MAX_PLAYER_NAME], qPT[50];
GetPlayerName(playerid,qAdminName1,MAX_PLAYER_NAME);
format(qPT,sizeof(qPT),"O Administrador %s Entrou no Servidor",qAdminName1);
GameTextForAll(qPT,4000,1);
}