Bueno aca les traigo el pawn:
La linea 25405 es esta:
Es lo que quiero arreglar gracias..
- Spoiler:
- zcmd(aon, playerid, params[]){
if (PlayerInfo[playerid][pJDS] < 1) return Message(playerid, COLOR_GRAD2, "¡No autorizado!")
new string[64];
if(AdminDuty[playerid] == 0){
AdminDuty[playerid] = 1; HidePM[playerid] = 0;
AntiAbusos[playerid] = 1;//Cuando la variable esta en 1 dejara usar los comandos
SetPlayerArmour(playerid, 999); SetHP(playerid, 999)
SetPlayerSkin(playerid, 217);
if (PlayerInfo[playerid][pSex] == 2){
SetPlayerSkin(playerid, 211);}
SetPlayerChatBubble(playerid, "Admin Duty", COLOR_PURPLE, 35.0, 5000);
BroadCast(COLOR_WHITE, "--- Administrador en Servicio ---");
format(string, sizeof(string), "%s está conectado. (/w %d)", PlayerName(playerid), playerid); BroadCast(0xFFFFA4FF,string);
return BroadCast(COLOR_WHITE, "--- ------------------------ ---");}
else{
AdminDuty[playerid] = 0; HidePM[playerid] = 1;
SetPlayerArmour(playerid, 0); SetHP(playerid, 100);
SetPlayerColor(playerid,TEAM_HIT_COLOR);
AntiAbusos[playerid] = 0;//Cuando la variable esta en 0 no dejara usar los comandos
SetPlayerChatBubble(playerid, "", COLOR_PURPLE, 35.0, 5000);
BroadCast(COLOR_WHITE, "--- Administrador Fuera de servicio ---");
format(string, sizeof(string), "%s está fuera de servicio, no atenderá más a los usuarios!", PlayerName(playerid), playerid); BroadCast(0xBF0000FF,string);
return BroadCast(COLOR_WHITE, "--- ------------------------ ---");}
}
- Spoiler:
- C:\Users\Gonzalo\Desktop\Alkaline RP\gamemodes\ZenonCity.net.pwn(21758) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
C:\Users\Gonzalo\Desktop\Alkaline RP\gamemodes\ZenonCity.net.pwn(25405) : error 017: undefined symbol "PlayerInfo"
C:\Users\Gonzalo\Desktop\Alkaline RP\gamemodes\ZenonCity.net.pwn(25405) : warning 215: expression has no effect
C:\Users\Gonzalo\Desktop\Alkaline RP\gamemodes\ZenonCity.net.pwn(25405) : error 001: expected token: ";", but found "]"
C:\Users\Gonzalo\Desktop\Alkaline RP\gamemodes\ZenonCity.net.pwn(25405) : error 029: invalid expression, assumed zero
C:\Users\Gonzalo\Desktop\Alkaline RP\gamemodes\ZenonCity.net.pwn(25405) : fatal error 107: too many error messages on one line
La linea 25405 es esta:
- Spoiler:
- if (PlayerInfo[playerid][pJDS] < 1) return Message(playerid, COLOR_GRAD2, "¡No autorizado!")
Es lo que quiero arreglar gracias..