03.01.2011, 09:58
No lugar de todas WantedLevel[playerid];.
C:\DOCUME~1\JOOPAU~1\Desktop\SERVID~1\GAMEMO~1\reallife.pwn(7157) : warning 209: function "Streamer_OnPlayerPickUpPickup" should return a value
C:\DOCUME~1\JOOPAU~1\Desktop\SERVID~1\GAMEMO~1\reallife.pwn(10739) : warning 204: symbol is assigned a value that is never used: "Drogas3"
C:\DOCUME~1\JOOPAU~1\Desktop\SERVID~1\GAMEMO~1\reallife.pwn(10738) : warning 204: symbol is assigned a value that is never used: "Drogas2"
C:\DOCUME~1\JOOPAU~1\Desktop\SERVID~1\GAMEMO~1\reallife.pwn(10737) : warning 204: symbol is assigned a value that is never used: "Drogas"
C:\DOCUME~1\JOOPAU~1\Desktop\SERVID~1\GAMEMO~1\reallife.pwn(12494) : error 017: undefined symbol "WantedLevel"
C:\DOCUME~1\JOOPAU~1\Desktop\SERVID~1\GAMEMO~1\reallife.pwn(12494) : warning 215: expression has no effect
C:\DOCUME~1\JOOPAU~1\Desktop\SERVID~1\GAMEMO~1\reallife.pwn(12494) : error 001: expected token: ";", but found "]"
C:\DOCUME~1\JOOPAU~1\Desktop\SERVID~1\GAMEMO~1\reallife.pwn(12494) : error 029: invalid expression, assumed zero
C:\DOCUME~1\JOOPAU~1\Desktop\SERVID~1\GAMEMO~1\reallife.pwn(12494) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
public Production()
{
new string[256];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pFishes] >= 5) { if(FishCount[i] >= 3) { PlayerInfo[i][pFishes] = 0; } else { FishCount[i] += 1; } }
if(PlayerDrunk[i] > 0) { PlayerDrunk[i] = 0; PlayerDrunkTime[i] = 0; GameTextForPlayer(i, "~p~Drunk effect~n~~w~Gone", 3500, 1); }
if(PlayerInfo[i][pPayDay] < 6) { PlayerInfo[i][pPayDay] += 1; } //+ 5 min to PayDay anti-abuse
for(new k = 0; k < MAX_PLAYERS; k++)
{
if(IsPlayerConnected(k))
{
if(gTeam[k] == 2 && CrimInRange(80.0, i,k))
{
}
else
{
WantedPoints[i] -= 3;
if(WantedPoints[i] < 0) { WantedPoints[i] = 0; }
new points = WantedPoints[i];
new wlevel;
if(points > 0)
{
new yesno;
if(points == 3) { if(WantedLevel[i] != 1) { WantedLevel[i] = 1; wlevel = 1; yesno = 1; } }
else if(points >= 4 && points <= 5) { if(WantedLevel[i] != 2) { WantedLevel[i] = 2; wlevel = 2; yesno = 1; } }
else if(points >= 6 && points <= 7) { if(WantedLevel[i] != 3) { WantedLevel[i] = 3; wlevel = 3; yesno = 1; } }
else if(points >= 8 && points <= 9) { if(WantedLevel[i] != 4) { WantedLevel[i] = 4; wlevel = 4; yesno = 1; } }
else if(points >= 10 && points <= 11) { if(WantedLevel[i] != 5) { WantedLevel[i] = 5; wlevel = 5; yesno = 1; } }
else if(points >= 12 && points <= 13) { if(WantedLevel[i] != 6) { WantedLevel[i] = 6; wlevel = 6; yesno = 1; } }
else if(points >= 14) { if(WantedLevel[i] != 10) { WantedLevel[i] = 10; wlevel = 10; yesno = 1; } }
else if(points <= 0) { if(WantedLevel[i] != 0) { ClearCrime(i); WantedLevel[i] = 0; wlevel = 0; yesno = 1;} }
if(yesno)
{
format(string, sizeof(string), "Current Wanted Level: %d", wlevel);
SendClientMessage(i, COLOR_YELLOW, string);
}
}
}
}
}
}
}
}
C:\DOCUME~1\JOOPAU~1\Desktop\SERVID~1\GAMEMO~1\reallife.pwn(7157) : warning 209: function "Streamer_OnPlayerPickUpPickup" should return a value
C:\DOCUME~1\JOOPAU~1\Desktop\SERVID~1\GAMEMO~1\reallife.pwn(10739) : warning 204: symbol is assigned a value that is never used: "Drogas3"
C:\DOCUME~1\JOOPAU~1\Desktop\SERVID~1\GAMEMO~1\reallife.pwn(10738) : warning 204: symbol is assigned a value that is never used: "Drogas2"
C:\DOCUME~1\JOOPAU~1\Desktop\SERVID~1\GAMEMO~1\reallife.pwn(10737) : warning 204: symbol is assigned a value that is never used: "Drogas"
C:\DOCUME~1\JOOPAU~1\Desktop\SERVID~1\GAMEMO~1\reallife.pwn(15283) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
C:\DOCUME~1\JOOPAU~1\Desktop\SERVID~1\GAMEMO~1\reallife.pwn(29888) : error 017: undefined symbol "WantedLevel"
C:\DOCUME~1\JOOPAU~1\Desktop\SERVID~1\GAMEMO~1\reallife.pwn(29888) : warning 215: expression has no effect
C:\DOCUME~1\JOOPAU~1\Desktop\SERVID~1\GAMEMO~1\reallife.pwn(29888) : error 001: expected token: ";", but found "]"
C:\DOCUME~1\JOOPAU~1\Desktop\SERVID~1\GAMEMO~1\reallife.pwn(29888) : error 029: invalid expression, assumed zero
C:\DOCUME~1\JOOPAU~1\Desktop\SERVID~1\GAMEMO~1\reallife.pwn(29888) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
WantedLevel[giveplayerid]
return 1;
}
PlayerInfo[playerid][pWanted] = WantedLevel;
WantedLevel[suspect]
PlayerInfo[giveplayerid][pWantedLevel]
PlayerInfo[giveplayerid][pWantedLevel] = 0;
@Woozie desculpa a demora, tive que sair do computador, visitas tinham chegado. rsrs
Estou nas ultimas linhas do Gamemode Agora tenho que substituir isso: pawn Code:
pawn Code:
|
SalvarNivel(playerid)
{
new Nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, Nome, sizeof(Nome));
new String[11];
format(String, sizeof(String), "WantedLevel");
if(!dini_Exists(String))
{
dini_Create(String);
}
dini_IntSet(String,Nome, /*AQUISUAVARIAVEL*/);
return 1;
}
SetarNivel(playerid)
{
new Nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, Nome, sizeof(Nome));
new String[11];
format(String, sizeof(String), "WantedLevel");
/*AQUISUAVARIAVEL*/ = dini_Int(String, Nome);
return 1;
}
SalvarNivel(playerid)
SetarNivel(playerid)