pawn Код:
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1313) : error 076: syntax error in the expression, or invalid function call
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1314) : error 076: syntax error in the expression, or invalid function call
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1315) : error 076: syntax error in the expression, or invalid function call
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1318) : error 076: syntax error in the expression, or invalid function call
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1319) : error 004: function "Up" is not implemented
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1325) : error 017: undefined symbol "i"
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1326) : error 017: undefined symbol "i"
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1327) : error 017: undefined symbol "i"
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1328) : error 017: undefined symbol "i"
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1329) : error 017: undefined symbol "i"
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1330) : error 017: undefined symbol "i"
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1334) : warning 217: loose indentation
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1346) : warning 217: loose indentation
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1346) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1346) : error 004: function "ChatAFK" is not implemented
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1347) : warning 217: loose indentation
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1357) : warning 217: loose indentation
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1357) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1357) : error 004: function "AtualizarChatBubble" is not implemented
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1361) : error 028: invalid subscript (not an array or too many subscripts): "pAdmin"
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1361) : warning 215: expression has no effect
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1361) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1361) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Bruninho\Desktop\Serv\gamemodes\Serv.pwn(1361) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
25 Errors.
pawn Код:
public RelogioUP(playerid)
{
new string[256];
if(segUP[playerid] == 0 && minUP[playerid] == 0)
{
new file[156],Name[MAX_PLAYER_NAME];
GetPlayerName(playerid,Name,sizeof(Name));
format(file,sizeof(file),FileUsers,Name);
if(!DOF2_FileExists(ReturnFileUser(playerid)))
{
if(AFK[playerid] == 0) {
DOF2_SetInt(ReturnFileUser, "Tempo", DOF2_SetInt(ReturnFileUser, "Tempo")+1);
//====== [EXP] ======
if(DOF2_SetInt(ReturnFileUser, "Tempo") >= 1)
{
DOF2_SetInt(ReturnFileUser, "EXP", DOF2_SetInt(ReturnFileUser, "EXP")+1);
format(string, sizeof(string), "| UP | Vocк ganhou +1 de experiкncia! [ %d / 5 ]",DOF2_SetInt(ReturnFileUser, "EXP"));
PlayerPlaySound(playerid, 1057, 0, 0, 0);
GameTextForPlayer(playerid, "~w~UP!", 3000, 6);
SendClientMessage(playerid, 0x75EA00AA, string);
DOF2_SetInt(ReturnFileUser, "Tempo",0);
}
if(DOF2_SetInt(ReturnFileUser, "EXP") >=5) {
DOF2_SetInt(ReturnFileUser, "Level", DOF2_SetInt(ReturnFileUser, "Level")+1);
SetPlayerScore(playerid,DOF2_SetInt(ReturnFileUser, "Level"));
format(string, sizeof(string), "| UP | Vocк juntou 5 experiкncias, e ganhou +1 level. (Level: %d) ",DOF2_SetInt(ReturnFileUser, "Level"));
SendClientMessage(playerid, 0x75EA00AA, string);
PlayerPlaySound(playerid, 1057, 0, 0, 0);
DOF2_SetInt(ReturnFileUser, "EXP",0);
Up(playerid);
}
}
else {
SendClientMessage(playerid, Vermelho, "[ANTI - AFK] Vocк estб afk, e nгo recebeu uma experiкncia!");
}
if(PlayerAfkTicks[i] == MAX_IDLE_TIME*60) {
AFK[i]= 1;
SendClientMessage(i, Amarelo, "[ANTI - AFK] Vocк foi bloqueado(a) de upar!");
TextDrawHideForPlayer(i,UPRelogio[i]);
TextDrawShowForPlayer(i,AfkText);
TextDrawShowForPlayer(i,AfkBackText);
}
}
if(segUP[playerid] == -1) {
if(minUP[playerid] == 0)
minUP[playerid] = 10;
segUP[playerid] = 59;
minUP[playerid]--;
}
format(string, sizeof(string), "~w~UP~b~: ~w~%02d~b~:~w~%02d", minUP[playerid],segUP[playerid]);
TextDrawSetString(UPRelogio[playerid],string);
segUP[playerid] --;
return 1;
}
public ChatAFK()
{
for(new x=0; x < MAX_PLAYERS; x++)
{
if(AFK[x] == 1)
{
SetPlayerChatBubble(x, "• Jogador AFK •", 0xEDFF87AA, 100.0, 10000);
}
}
}
public AtualizarChatBubble()
{
for(new x=0; x < MAX_PLAYERS; x++)
{
if(pAdmin[x] == 1)