new plantao[MAX_PLAYERS];
public Plantao(playerid, gz)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, 1933.5981,-1976.3495,13.5469)){
plantao[playerid] = 1;
GivePlayerWeapon(playerid, 16, 5);
GivePlayerMoney(playerid, 20000);
SendClientMessage(playerid, -1, "[PLANTAO] Vocк terminou o plantгo e recebeu R$20.000 e 5 granadas!");
}
else{
plantao[playerid] = 0;
SendClientMessage(playerid, COR_ERRO, "[ERRO]Plantгo cancelado!");
}
}
forward Plantao(playerid); |
if(IsPlayerInRangeOfPoint(playerid, 30, -2474.0898,2263.5115,4.8359)) { SetTimerEx("Plantao", 40000, true, "i", playerid); } |
new variavel[MAX_PLAYERS], ver[MAX_PLAYERS];
new plantao[MAX_PLAYERS];
//inicio gm
SetTimer("att", 1000, true);
//--
forward att();
public att()
{
for(new i=0; i<MAX_PLAYERS; i++){
if(IsPlayerInRangeOfPoint(i, 30, -2474.0898,2263.5115,4.8359) && ver[i] != 1){
variavel[i] = gettime() + 40;
ver[i] = 1;
}
if(IsPlayerInRangeOfPoint(i, 5.0, 1933.5981,-1976.3495,13.5469) && variavel[i] < gettime() && ver[i] == 1){
ver[i] = 0;
plantao[i] = 1;
GivePlayerWeapon(i, 16, 5);
GivePlayerMoney(i, 20000);
SendClientMessage(i, -1, "[PLANTAO] Vocк terminou o plantгo e recebeu R$20.000 e 5 granadas!");
}
if(!IsPlayerInRangeOfPoint(i, 5.0, 1933.5981,-1976.3495,13.5469) && ver[i] == 1 && variavel[i] > gettime()){
plantao[i] = 0;
ver[i] = 0;
variavel[i] = 0;
SendClientMessage(i, COR_ERRO, "[ERRO]Plantгo cancelada!");
}
}
return 1;
}
//quando player desconectar
variavel[playerid] = 0;
ver[playerid] = 0;
//-----
C:\Users\Lan\Desktop\GameMode WR\gamemodes\WR.pwn(27885) : error 017: undefined symbol "i" C:\Users\Lan\Desktop\GameMode WR\gamemodes\WR.pwn(27885) : error 029: invalid expression, assumed zero C:\Users\Lan\Desktop\GameMode WR\gamemodes\WR.pwn(27885) : error 029: invalid expression, assumed zero C:\Users\Lan\Desktop\GameMode WR\gamemodes\WR.pwn(27885) : fatal error 107: too many error messages on one line |
SendFormattedMessageToAll(COR_PRINCIPAL, "Top Rank » {FFFFFF}%s й o mas viciado do servidor, com %d de Level!",getPName(i),getrank("Score", "Level")]); |
forward RankGlobal(); public RankGlobal() { foreach(Player, i) { if(IsPlayerConnected(i)) { checkrank("Score", getPName(i), GetPlayerScore(i)); checkrank("Kill", getPName(i), Player[i][pMatou]); checkrank("Money", getPName(i), GetPlayerMoney(i)); checkrank("DueloW", getPName(i), wDuelos[i]); checkrank("DueloL", getPName(i), lDuelos[i]); checkrank("Procurado", getPName(i), Player[i][pProcurado]); checkrank("Hits", getPName(i), Player[i][pRpt]); checkrank("MotoHits", getPName(i), Player[i][pHitsMtx]); checkrank("Vips", getPName(i), Player[i][VIPExpira]); } } SendFormattedMessageToAll(COR_PRINCIPAL, "Top Rank » {FFFFFF}%s й o mas viciado do servidor, com %d de Level!",getPName(i),getrank("Score", "Level")]); return 1; } |
forward RankGlobal();
public RankGlobal()
{
foreach(Player, i)
{
if(IsPlayerConnected(i))
{
checkrank("Score", getPName(i), GetPlayerScore(i));
checkrank("Kill", getPName(i), Player[i][pMatou]);
checkrank("Money", getPName(i), GetPlayerMoney(i));
checkrank("DueloW", getPName(i), wDuelos[i]);
checkrank("DueloL", getPName(i), lDuelos[i]);
checkrank("Procurado", getPName(i), Player[i][pProcurado]);
checkrank("Hits", getPName(i), Player[i][pRpt]);
checkrank("MotoHits", getPName(i), Player[i][pHitsMtx]);
checkrank("Vips", getPName(i), Player[i][VIPExpira]);
SendFormattedMessageToAll(COR_PRINCIPAL, "Top Rank » {FFFFFF}%s й o mas viciado do servidor, com %d de Level!",getPName(i),getrank("Score", "Level")]);
return 1;
}
}
}
SendFormattedMessageToAll(COR_PRINCIPAL, "Top Rank » {FFFFFF}%s й o mas viciado do servidor, com %d de Level!",getPName(i),getrank("Score", "Level")]); |
C:\Users\Lan\Desktop\GameMode WR\gamemodes\WR.pwn(27884) : error 001: expected token: ",", but found "]" C:\Users\Lan\Desktop\GameMode WR\gamemodes\WR.pwn(27884) : error 029: invalid expression, assumed zero C:\Users\Lan\Desktop\GameMode WR\gamemodes\WR.pwn(27884) : error 029: invalid expression, assumed zero C:\Users\Lan\Desktop\GameMode WR\gamemodes\WR.pwn(27884) : fatal error 107: too many error messages on one line |
forward RankGlobal(); public RankGlobal() { foreach(Player, i) { if(IsPlayerConnected(i)) { checkrank("Score", getPName(i), GetPlayerScore(i)); checkrank("Kill", getPName(i), Player[i][pMatou]); checkrank("Money", getPName(i), GetPlayerMoney(i)); checkrank("DueloW", getPName(i), wDuelos[i]); checkrank("DueloL", getPName(i), lDuelos[i]); checkrank("Procurado", getPName(i), Player[i][pProcurado]); checkrank("Hits", getPName(i), Player[i][pRpt]); checkrank("MotoHits", getPName(i), Player[i][pHitsMtx]); checkrank("Vips", getPName(i), Player[i][VIPExpira]); SendFormattedMessageToAll(COR_PRINCIPAL, "Top Rank » {FFFFFF}%s й o mas viciado do servidor, com %d de Level!",getPName(i),getrank("Score", "Level")); return 1; } }
forward RankGlobal();
public RankGlobal()
{
foreach(Player, i)
{
if(IsPlayerConnected(i))
{
checkrank("Score", getPName(i), GetPlayerScore(i));
checkrank("Kill", getPName(i), Player[i][pMatou]);
checkrank("Money", getPName(i), GetPlayerMoney(i));
checkrank("DueloW", getPName(i), wDuelos[i]);
checkrank("DueloL", getPName(i), lDuelos[i]);
checkrank("Procurado", getPName(i), Player[i][pProcurado]);
checkrank("Hits", getPName(i), Player[i][pRpt]);
checkrank("MotoHits", getPName(i), Player[i][pHitsMtx]);
checkrank("Vips", getPName(i), Player[i][VIPExpira]);
SendFormattedMessageToAll(COR_PRINCIPAL, "Top Rank » {FFFFFF}%s й o mas viciado do servidor, com %d de Level!",getPName(i),getrank("Score", "Level"));
return 1;
}
}
}