Most már csak egy baj van ez!
C:\\Documents and Settings\\Gomez\\Asztal\\Pöpi dolgai\\Módok@Egyebek\\Falusirp\\gamemodes\\bwrpdream.pwn(33) : error 037: invalid string (possibly non-terminated string)
ZyZu:
Ez áll az OnPlayerDisconnect alatt!
reporttiltva[playerid] = 1;
PlayerInfo[playerid][pHelper] = 0;
PlayerInfo[playerid][Korhazban] = 0;
PlayerInfo[playerid][rejtozes] = 0
new plname[MAX_PLAYER_NAME];
GetPlayerName(playerid, plname, sizeof(plname));
gActivePlayers[playerid]--;
numplayers--;
format(stringx, sizeof(stringx),\"(( %s befejezte a játékot. ))\",plname);
SendAdminSegedMessage(COLOR_ADMINSEGED,stringx);
new h,mi,s,y,m,d;
getdate(y,m,d);
gettime(h,mi,s);
format(stringx,sizeof(stringx), \"[%d/%d/%d][%d:%d:%d][Kilépés] %s lelépett a szerverrõl\",y,m,d,h,mi,s,plname);
LoOoG(stringx);
Nevekki(playerid);
Delete3DTextLabel(DutyLabel[playerid]);
Delete3DTextLabel(DutyLabelNev[playerid]);
UpdatePlayerPosition2(playerid);
new az = GetPlayerInterior(playerid);
new ez = GetPlayerVirtualWorld(playerid);
PlayerInfo[playerid][kelesinti] = az;
PlayerInfo[playerid][kelesvw] = ez;
for(new slot = 0; slot != 12; slot++)
{
new wep, ammo;
GetPlayerWeaponData(playerid, slot, wep, ammo);
if(wep != 0 && ammo != 0)
{
if(wep == 1) { PlayerInfo[playerid][fegyver1] = 1; PlayerInfo[playerid][tolteny1] += ammo; }
else if(wep == 5) { PlayerInfo[playerid][fegyver2] = 1; PlayerInfo[playerid][tolteny2] += ammo; }
else if(wep == 4) { PlayerInfo[playerid][fegyver3] = 1; PlayerInfo[playerid][tolteny3] += ammo; }
else if(wep == 22) { PlayerInfo[playerid][fegyver4] = 1; PlayerInfo[playerid][tolteny4] += ammo; }
else if(wep == 24) { PlayerInfo[playerid][fegyver5] = 1; PlayerInfo[playerid][tolteny5] += ammo; }
else if(wep == 29) { PlayerInfo[playerid][fegyver6] = 1; PlayerInfo[playerid][tolteny6] += ammo; }
else if(wep == 30) { PlayerInfo[playerid][fegyver7] = 1; PlayerInfo[playerid][tolteny7] += ammo; }
else if(wep == 31) { PlayerInfo[playerid][fegyver8] = 1; PlayerInfo[playerid][tolteny8] += ammo; }
else if(wep == 25) { PlayerInfo[playerid][fegyver9] = 1; PlayerInfo[playerid][tolteny9] += ammo; }
else if(wep == 41) { PlayerInfo[playerid][fegyver10] = 1; PlayerInfo[playerid][tolteny10] += ammo; }
else if(wep == 17) { PlayerInfo[playerid][fegyver11] = 1; PlayerInfo[playerid][tolteny11] += ammo; }
else if(wep == 3) { PlayerInfo[playerid][fegyver12] = 1; PlayerInfo[playerid][tolteny12] += ammo; }
}
}
if(reason == 0)
{
PlayerInfo[playerid][pCrashed] = 1;
}
OnPlayerUpdate(playerid);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
/* if(MedicAccepted < 999)
{
if(MedicAccepted == playerid)
{
MedicAccepted = 999;
//GameTextForPlayer(i, \"~w~Taxi Caller~n~~r~Left the game\", 5000, 1);
MedicCallTime = 0;
DisablePlayerCheckpoint(i);
}
}*/
if(TaxiAccepted < 999)
{
if(TaxiAccepted == playerid)
{
TaxiAccepted = 999;
//GameTextForPlayer(i, \"~w~Taxi Caller~n~~r~Left the game\", 5000, 1);
TaxiCallTime = 0;
DisablePlayerCheckpoint(i);
}
}
}
}
/*if(GettingCK[playerid] < 999)
{
if(IsPlayerConnected(GettingCK[playerid]))
{
SendClientMessage(GettingCK[playerid], COLOR_YELLOW, \"Your Character Kill has left the server, try again later.\");
OnCK[GettingCK[playerid]] = 999;
}
}*/
if (GetPlayerVehicleID(playerid) == 131) SetVehicleToRespawn(131);
OnPlayerUpdate(playerid);
//----------------------------------------------------------
if(TransportCost[playerid] > 0 && TransportDriver[playerid] < 999)
{
if(IsPlayerConnected(TransportDriver[playerid]))
{
new string[64];
TransportMoney[TransportDriver[playerid]] += TransportCost[playerid];
TransportTime[TransportDriver[playerid]] = 0;
TransportCost[TransportDriver[playerid]] = 0;
format(string, sizeof(string), \"~w~Az utas kiszállt~n~~g~Kerestél %dFt-t\",TransportCost[playerid]);
GameTextForPlayer(TransportDriver[playerid], string, 5000, 1);
}
}
if(GotHit[playerid] > 0)
{
if(GetChased[playerid] < 999)
{
if(IsPlayerConnected(GetChased[playerid]))
{
SendClientMessage(GetChased[playerid], COLOR_YELLOW, \"Your Hit has left the server.\");
GoChase[GetChased[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(GangCar[playerid] != 512)
{
gLastDriver[GangCar[playerid]] = 520;
gCarLock[GangCar[playerid]] = 0;
UnLockCar(GangCar[playerid]);
}
if (gLastCar[playerid] > 0)
{
gLastDriver[gLastCar[playerid]] = 300;
if(PlayerInfo[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;
SetPlayerPos(Boxer2, 765.8433,3.2924,1000.7186);
SetPlayerInterior(Boxer2, 5);
PlayerInfo[boxer2][pInt] = 5;
GameTextForPlayer(Boxer2, \"~r~Match interupted\", 5000, 1);
}
}
else if(Boxer2 == playerid)
{
if(IsPlayerConnected(Boxer1))
{
PlayerBoxing[boxer1] = 0;
SetPlayerPos(Boxer1, 765.8433,3.2924,1000.7186);
SetPlayerInterior(Boxer1, 5);
PlayerInfo[boxer2][pInt] = 5;
GameTextForPlayer(Boxer1, \"~r~Match interupted\", 5000, 1);
}
}
//InRing = 0;
RoundStarted = 0;
Boxer1 = 255;
Boxer2 = 255;
TBoxer = 255;
}
if(TransportDuty[playerid] == 1)
{
TaxiDrivers -= 1;
}
if(PlayerInfo[playerid][pJob] == 11)
{
if(JobDuty[playerid] == 1) { Medics -= 1; }
}
else if(PlayerInfo[playerid][pLeader] == 17 || PlayerInfo[playerid][pMember] == 17)
{
if(JobDuty[playerid] == 1) { Mechanics -= 1; }
}
/* else if(PlayerInfo[playerid][pJob] == 17)
{
if(JobDuty[playerid] == 1) { PizzaBoys -= 1; }
}
if (PlayerInfo[playerid][pRoadblock] != 0)
{
RemoveRoadblock(playerid);
}*/
//TextDrawHideForPlayer(playerid,lbt);
//TextDrawHideForPlayer(playerid,lbb);
TextDrawHideForPlayer(playerid,dtrp);
}
Dupla hozzászólás automatikusan összefûzve. ( 2013. szeptember 25. - 14:06:05 )
Megoldottam már!