20.03.2014, 22:12
Bom eu tentei colocar um random de valores para roubo e dei esses avisos tentei arrumar num consegui
pawn Код:
C:\Users\User\Documents\Leonardo R\New server noiz dois\gm by master_pawnaaaaaaa\gm by master_pawn\Brasil Gold Revolution RP\gamemodes\BGR.pwn(72783) : warning 213: tag mismatch
C:\Users\User\Documents\Leonardo R\New server noiz dois\gm by master_pawnaaaaaaa\gm by master_pawn\Brasil Gold Revolution RP\gamemodes\BGR.pwn(72793) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Header size: 12500 bytes
Code size: 3114432 bytes
Data size: 7387176 bytes
Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements:10530492 bytes
2 Warnings.
pawn Код:
forward StealingTimer();
public StealingTimer()
{
for(new i = 1; i < MAX_ROBS; i ++)
{
if(Rob[i][Stealing] == true)
{
if(PlayerToPoint(30.0, Rob[i][Robber], Rob[i][CoordX], Rob[i][CoordY], Rob[i][CoordZ]))
{
Rob[i][RobStep] ++;
if(Rob[i][RobStep] == 9)
{
new randCU = random(sizeof(ROB_CASH));
Rob[i][CanSteal] = false;
SetTimerEx("AllowSteal",15*60000, false,"i", i);
GivePlayerGP(Rob[i][Robber], ROB_CASH[randCU][0]);//linha 72783
new string[128];
format(string, sizeof(string), "[SUCESSO] Vocк conseguiu retirar R$%d do cofre. Fuja logo daqui!", ROB_CASH[randCU][0]);
SendClientMessage(Rob[i][Robber], COLOR_GREEN, string);
for(new x = 0; x <= HighestID; x ++)
{
if(IsPlayerConnected(x) && x != Rob[i][Robber] && gTeam[x] == gTeam[Rob[i][Robber]] && PlayerToPoint(30.0, x, Rob[i][CoordX], Rob[i][CoordY], Rob[i][CoordZ]))
{
SetPlayerCriminal(x,255,"Cumplice de assalto");
GivePlayerGP(x, ROB_CASH[randCU][0]);//linha 72793
format(string, sizeof(string), "[SUCESSO] Vocк conseguiu retirar R$%d do cofre como cъmplice. Fuja logo daqui!", ROB_CASH[randCU][0]);
SendClientMessage(x, COLOR_GREEN, string);
WantedPoints[x] ++;
}
}
Rob[i][Robber] = INVALID_PLAYER_ID;
Rob[i][RobStep] = 0;
Rob[i][Stealing] = false;
}
}
else
{
SendClientMessage(Rob[i][Robber], COLOR_GREY,"[ERRO] Roubo cancelado, vocк se distanciou do cofre.");
Rob[i][CanSteal] = false;
Rob[i][Robber] = INVALID_PLAYER_ID;
Rob[i][RobStep] = 0;
Rob[i][Stealing] = false;
}
}
}
return 1;
}