25.11.2012, 19:50
Olб, meu servidor estб acontecendo alguma coisa que eu nгo estou conseguindo arrumar! O erro estб quando eu ligo o servidor pelo louncher de liga-lo, ai fica mostrando o seguinte erro;
Pois o Gamemode estб apenas com Um Warn;
Linha 11949 que estб dando Warn:
Codigo:
GAMEMODE: BPH precisava dele para dar umas olhadas =/' Ajude-me pls!
Код:
Script[gamemode/tst.amx]: Run time error 19:"File or function is not found"
Код:
C:\Users\Gustavo\Desktop\tst\gamemodes\bph.pwn(11949) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase Header size: 12056 bytes Code size: 2286716 bytes Data size: 7655528 bytes Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion Total requirements: 9970684 bytes 1 Warning.
pawn Код:
DeleteClosestStrip(playerid);
pawn Код:
if(gPlayerLogged[playerid])
{
new file[128];
format(file, sizeof(file), "/RPG/users/%s.ini", Player[playerid][pName]);
dini_IntSet(file, "Online", 0);
SavePlayerVehicle(playerid);
}
new string[128];
new IP[24];
GetPlayerIp(playerid,IP,sizeof(IP));
format(string,128,"%s desconectou no servidor. (id: %d - IP: %s)", ReturnPlayer(playerid), playerid, IP);
WriteLog("connections", string);
GetPlayerPos(playerid,Player[playerid][pLocalX],Player[playerid][pLocalY],Player[playerid][pLocalZ]);
if(playerid == HighestID+1)
{
new highID = 0;
for(new x=0; x <= HighestID; x++)
{
if(IsPlayerConnected(x))
{
if(x>highID)
{
highID = x;
}
}
}
HighestID = highID;
}
for(new c=0;c<28;c++)
if(Cabine[c][Jogador] == playerid)
{
Cabine[c][Ocupado] = false;
break;
}
new vehicleid = GetOwnedVehicleID(playerid);
new sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
if(IsACop(playerid))
WantedPoints[playerid] = 0;
if(Player[playerid][pAdmin] < 3)
{
if(reason == 1 && PlayerTied[playerid] > 0)
{
format(string,sizeof string,"%s saiu do servidor (/q ou Esc) EM SEQUESTRO.",sendername);
SendClientMessageToAll(COLOR_WHITE, string);
Player[playerid][pJailed] = 2;
Player[playerid][pJailTime] = 1800;
}
}
NoTaxi[playerid][0] = 0;
NoTaxi[playerid][1] = 0;
OnPlayerSave(playerid);
Conce[playerid] = 0;
CarColor[playerid][0] = 1;
CarColor[playerid][1] = 1;
VehicleInfo[vehicleid][vLock] = 0;
VehicleInfo[vehicleid][vPRFLock] = 0;
if(CarShopping[playerid] == true)
{
CarShopping[playerid] = false;
DestroyVehicle(ShopCar[playerid]);
carbrowse[playerid] = 0;
}
Player[playerid][pAdjustable] = 1;
Teste[playerid] = 0;
TakingLesson[playerid] = 0;
Acertos[playerid] = 0;
ClearCrime(playerid);
CPorder[playerid] = 0;
for(new z;z<=MAX_JOBS;z++)
if(Solicitando[playerid][z] == true)
Cancelando(playerid,z);
for(new x=0; x<MAX_PLAYERS; x++)
if(GetPlayerState(x) == PLAYER_STATE_SPECTATING && Player[x][gSpectateID] == playerid)
AdvanceSpectate(x);
if(GettingCK[playerid] < 999)
{
if(IsPlayerConnected(GettingCK[playerid]))
{
SendClientMessage(GettingCK[playerid], COLOR_YELLOW, "O personagem saiu do servidor, tente mais tarde.");
OnCK[GettingCK[playerid]] = 999;
}
}
if(PlayerPaintballing[playerid] != 0)
PaintballPlayers --;
if(PlayerKarting[playerid] > 0 && PlayerInKart[playerid] > 0)
KartingPlayers --;
if(PlayersChannel[playerid] < 999)
IRCInfo[PlayersChannel[playerid]][iPlayers] -= 1;
if(HireCar[playerid] != 299)
{
gLastDriver[HireCar[playerid]] = 300;
gCarLock[HireCar[playerid]] = 0;
UnLockCar(HireCar[playerid]);
}
if(gLastCar[playerid] > 0)
{
gLastDriver[gLastCar[playerid]] = 300;
if(Player[playerid][pPhousekey] != gLastCar[playerid]-1)
{
gCarLock[gLastCar[playerid]] = 0;
UnLockCar(gLastCar[playerid]);
}
}
if(PlayerBoxing[playerid] > 0)
{
if(Boxer1 == playerid)
{
if(IsPlayerConnected(Boxer2))
{
PlayerBoxing[Boxer2] = 0;
SafeSetPlayerPos(Boxer2, 765.8433,3.2924,1000.7186);
SetPlayerInterior(Boxer2, 5);
GameTextForPlayer(Boxer2, "~r~Partida interrompida", 5000, 1);
}
}
else if(Boxer2 == playerid)
{
if(IsPlayerConnected(Boxer1))
{
PlayerBoxing[Boxer1] = 0;
SafeSetPlayerPos(Boxer1, 765.8433,3.2924,1000.7186);
SetPlayerInterior(Boxer1, 5);
GameTextForPlayer(Boxer1, "~r~partida interrompida", 5000, 1);
}
}
InRing = 0;
RoundStarted = 0;
Boxer1 = 255;
Boxer2 = 255;
TBoxer = 255;
}
if(TaxistaIn[playerid] == true)
TaxistaNum -= 1;
if(Player[playerid][pJob] == MEDICO)
if(JobDuty[playerid] == 1) { Medics -= 1; }
else if(Player[playerid][pJob] == MECANICO)
if(JobDuty[playerid] == 1) { Mechanics -= 1; }
else if(Player[playerid][pJob] == EPIZZA)
if(JobDuty[playerid] == 1) { PizzaBoys -= 1; }
if(Player[playerid][pCone] != 0)
{
Player[playerid][pCone] = 0;
RemoveCone(playerid);
}
if(Player[playerid][pCorrente] != 0)
{
DeleteClosestStrip(playerid);
Player[playerid][pCorrente] = 0;
RemoveCorrente(playerid);
}
}
GAMEMODE: BPH precisava dele para dar umas olhadas =/' Ajude-me pls!