28.06.2015, 03:17
PHP код:
/*Linha: 73*/public OnPlayerDisconnect()
/*Linha: 74*/{
/*Linha: 75*/new arquiva[34], playernome[MAX_PLAYER_NAME];
/*Linha: 76*/ GetPlayerName(playerid, playernome, sizeof(playernome));
/*Linha: 77*/ format(arquiva, sizeof(arquiva), "Admins/%s", playernome);
/*Linha: 78*/ if(DOF2_FileExists(arquiva))
/*Linha: 79*/ {
/*Linha: 80*/ DOF2_SetInt(arquiva, "Level", pAdmin[playerid][Level]);
/*Linha: 81*/ DOF2_SaveFile();
/*Linha: 82*/ }
/*Linha: 83*/ else
/*Linha: 84*/ {
/*Linha: 85*/ DOF2_CreateFile(arquiva);
/*Linha: 86*/ DOF2_SetInt(arquiva, "Level", pAdmin[playerid][Level]);
/*Linha: 87*/ DOF2_SaveFile();
/*Linha: 88*/ return 1;
/*Linha: 89*/ }
/*Linha: 90*/ //============================={COMANDOS}====================================//
/*Linha: 91*/CMD:daradmin(playerid, params[])
/*Linha: 92*/{
/*Linha: 93*/ new id, level, string[256], string2[256], ganhou[MAX_PLAYER_NAME], deu[MAX_PLAYER_NAME];
/*Linha: 94*/ if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xAD0000AA, "{00E5FF}Vocк nгo estб autorizado.");
/*Linha: 95*/ if(sscanf(params, "ud", id, level)) return SendClientMessage(playerid, 0xAD0000AA, "Use /daradmin [ID] [LEVEL]");
/*Linha: 96*/ if (level < 0 || level > 5) return SendClientMessage(playerid, 0xFF0000FF, "Level invбlido. Use de 1 б 5 .");
/*Linha: 97*/ if(!IsPlayerConnected(id)) return SendClientMessage(playerid, 0xAD0000AA, "Este jogador nгo estб online.");
/*Linha: 98*/ GetPlayerName(id, ganhou, sizeof(ganhou));
/*Linha: 99*/ GetPlayerName(playerid, deu, sizeof(deu));
/*Linha: 100*/ format(string, sizeof(string), "Vocк deu admin level %s para o %s", GetLevelAdmin(level), ganhou);
/*Linha: 101*/ SendClientMessage(playerid, 0x00F6F6AA, string);
/*Linha: 102*/ format(string2, sizeof(string2), "O admin %s deu admin level %s para vocк.", deu , GetLevelAdmin(level));
/*Linha: 103*/ SendClientMessage(id, VERDE, string2);
/*Linha: 104*/ pAdmin[id][Level] = level;
/*Linha: 105*/ return 1;
/*Linha: 106*/ }
PHP код:
C:\Users\Usuario\Desktop\Nova pasta\gamemodes\BPS.pwn(76) : warning 217: loose indentation
C:\Users\Usuario\Desktop\Nova pasta\gamemodes\BPS.pwn(76) : error 017: undefined symbol "playerid"
C:\Users\Usuario\Desktop\Nova pasta\gamemodes\BPS.pwn(80) : error 017: undefined symbol "playerid"
C:\Users\Usuario\Desktop\Nova pasta\gamemodes\BPS.pwn(86) : error 017: undefined symbol "playerid"
C:\Users\Usuario\Desktop\Nova pasta\gamemodes\BPS.pwn(88) : error 079: inconsistent return types (array & non-array)
C:\Users\Usuario\Desktop\Nova pasta\gamemodes\BPS.pwn(91) : warning 217: loose indentation
C:\Users\Usuario\Desktop\Nova pasta\gamemodes\BPS.pwn(91) : error 029: invalid expression, assumed zero
C:\Users\Usuario\Desktop\Nova pasta\gamemodes\BPS.pwn(91) : error 017: undefined symbol "cmd_daradmin"
C:\Users\Usuario\Desktop\Nova pasta\gamemodes\BPS.pwn(91) : error 029: invalid expression, assumed zero
C:\Users\Usuario\Desktop\Nova pasta\gamemodes\BPS.pwn(91) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
8 Errors.