Dat Problem ist das ich das net mehr weis was ich verändert habe brauche schnelle Hilfe...
Beiträge von Mr_Lolboy
-
-
Hallo liebe Breadfishe
Ich habe ein Problem und zwar 26 Errors wegen Klammerfehler
C:\Users\Robin\Desktop\Spiele\GTA San Andreas\GTA SERVER\12312\gamemodes\MVD-Roleplay.pwn(79) : warning 201: redefinition of constant/macro (symbol "GetPlayerSpeed")
C:\Users\Robin\Desktop\Spiele\GTA San Andreas\GTA SERVER\12312\gamemodes\MVD-Roleplay.pwn(15955) : warning 213: tag mismatch
C:\Users\Robin\Desktop\Spiele\GTA San Andreas\GTA SERVER\12312\gamemodes\MVD-Roleplay.pwn(21380) : error 004: function "strtok" is not implemented
C:\Users\Robin\Desktop\Spiele\GTA San Andreas\GTA SERVER\12312\gamemodes\MVD-Roleplay.pwn(21380) : error 033: array must be indexed (variable "cmd")
C:\Users\Robin\Desktop\Spiele\GTA San Andreas\GTA SERVER\12312\gamemodes\MVD-Roleplay.pwn(22257) : error 004: function "strtok" is not implemented
C:\Users\Robin\Desktop\Spiele\GTA San Andreas\GTA SERVER\12312\gamemodes\MVD-Roleplay.pwn(22257) : error 033: array must be indexed (variable "tmp")
C:\Users\Robin\Desktop\Spiele\GTA San Andreas\GTA SERVER\12312\gamemodes\MVD-Roleplay.pwn(22269) : error 004: function "strtok" is not implemented
C:\Users\Robin\Desktop\Spiele\GTA San Andreas\GTA SERVER\12312\gamemodes\MVD-Roleplay.pwn(22269) : error 033: array must be indexed (variable "x_nr")
C:\Users\Robin\Desktop\Spiele\GTA San Andreas\GTA SERVER\12312\gamemodes\MVD-Roleplay.pwn(22537) : error 004: function "strtok" is not implemented
C:\Users\Robin\Desktop\Spiele\GTA San Andreas\GTA SERVER\12312\gamemodes\MVD-Roleplay.pwn(22537) : error 033: array must be indexed (variable "tmp")
C:\Users\Robin\Desktop\Spiele\GTA San Andreas\GTA SERVER\12312\gamemodes\MVD-Roleplay.pwn(22600) : error 004: function "strtok" is not implemented
C:\Users\Robin\Desktop\Spiele\GTA San Andreas\GTA SERVER\12312\gamemodes\MVD-Roleplay.pwn(22600) : error 033: array must be indexed (variable "tmp")
C:\Users\Robin\Desktop\Spiele\GTA San Andreas\GTA SERVER\12312\gamemodes\MVD-Roleplay.pwn(22701) : error 004: function "strtok" is not implemented
C:\Users\Robin\Desktop\Spiele\GTA San Andreas\GTA SERVER\12312\gamemodes\MVD-Roleplay.pwn(22701) : error 033: array must be indexed (variable "tmp")
C:\Users\Robin\Desktop\Spiele\GTA San Andreas\GTA SERVER\12312\gamemodes\MVD-Roleplay.pwn(22741) : error 004: function "strtok" is not implemented
C:\Users\Robin\Desktop\Spiele\GTA San Andreas\GTA SERVER\12312\gamemodes\MVD-Roleplay.pwn(22741) : error 033: array must be indexed (variable "tmp")
C:\Users\Robin\Desktop\Spiele\GTA San Andreas\GTA SERVER\12312\gamemodes\MVD-Roleplay.pwn(22853) : error 004: function "strtok" is not implemented
C:\Users\Robin\Desktop\Spiele\GTA San Andreas\GTA SERVER\12312\gamemodes\MVD-Roleplay.pwn(22853) : error 033: array must be indexed (variable "tmp")
C:\Users\Robin\Desktop\Spiele\GTA San Andreas\GTA SERVER\12312\gamemodes\MVD-Roleplay.pwn(22861) : error 004: function "strtok" is not implemented
C:\Users\Robin\Desktop\Spiele\GTA San Andreas\GTA SERVER\12312\gamemodes\MVD-Roleplay.pwn(22861) : error 033: array must be indexed (variable "tmp")
C:\Users\Robin\Desktop\Spiele\GTA San Andreas\GTA SERVER\12312\gamemodes\MVD-Roleplay.pwn(22931) : error 004: function "strtok" is not implemented
C:\Users\Robin\Desktop\Spiele\GTA San Andreas\GTA SERVER\12312\gamemodes\MVD-Roleplay.pwn(22931) : error 033: array must be indexed (variable "tmp")
C:\Users\Robin\Desktop\Spiele\GTA San Andreas\GTA SERVER\12312\gamemodes\MVD-Roleplay.pwn(22968) : error 004: function "strtok" is not implemented
C:\Users\Robin\Desktop\Spiele\GTA San Andreas\GTA SERVER\12312\gamemodes\MVD-Roleplay.pwn(22968) : error 033: array must be indexed (variable "tmp")
C:\Users\Robin\Desktop\Spiele\GTA San Andreas\GTA SERVER\12312\gamemodes\MVD-Roleplay.pwn(23037) : error 004: function "strtok" is not implemented
C:\Users\Robin\Desktop\Spiele\GTA San Andreas\GTA SERVER\12312\gamemodes\MVD-Roleplay.pwn(23037) : error 033: array must be indexed (variable "tmp")
C:\Users\Robin\Desktop\Spiele\GTA San Andreas\GTA SERVER\12312\gamemodes\MVD-Roleplay.pwn(23267) : error 004: function "strtok" is not implemented
C:\Users\Robin\Desktop\Spiele\GTA San Andreas\GTA SERVER\12312\gamemodes\MVD-Roleplay.pwn(23267) : error 033: array must be indexed (variable "tmp")Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
Wenn mir jemand weiterhelfen würde wäre net... Ich bedanke mich im Vorraus für jede hilfreiche Antwort
-
Function OnPlayerDisconnect(playerid, reason)
{
GW_OnPlayerDisconnect(playerid);
TextDrawDestroy(FPS[playerid]);
if(supmobil[playerid] != 0)
{
DestroyDynamicObject(GetPVarInt(playerid, "neon2"));
DeletePVar(playerid, "SupBeleuchtung");
DestroyDynamicObject(GetPVarInt(playerid, "neon3"));
DeletePVar(playerid, "SupBeleuchtung");
DestroyDynamicObject(GetPVarInt(playerid, "blitzer1"));
DeletePVar(playerid, "SupBeleuchtung");
DestroyDynamicObject(GetPVarInt(playerid, "blitzer2"));
DeletePVar(playerid, "SupBeleuchtung");
DestroyDynamicObject(GetPVarInt(playerid, "blitzer3"));
DeletePVar(playerid, "SupBeleuchtung");
DestroyVehicle(supmobil[playerid]);
supmobil[playerid] = 0;
}
new spname[MAX_PLAYER_NAME];
GetPlayerName(playerid, spname, sizeof(spname));
new namestr[100];
format(namestr, sizeof(namestr), "Spieler ~r~~h~~h~%s~w~,", spname);
TextDrawSetString(TdSpielerName, namestr);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(PlayerInfo[i][pMeldung] == 1)
{
if(reason == 0)
{
format(ALLSTRING, sizeof(ALLSTRING), "%s hat den Server verlassen (Timeout).", spname);
}
else if(reason == 1)
{
format(ALLSTRING, sizeof(ALLSTRING), "%s hat den Server verlassen.", spname);
}
else if(reason == 2)
{
format(ALLSTRING, sizeof(ALLSTRING), "%s hat den Server verlassen (Exe-Crash).", spname);
}
SendClientMessage(i, COLOR_LIGHTGREEN, ALLSTRING);
}
}
new msgstr[255];
format(msgstr, sizeof(msgstr), "hat den Server verlassen.");
TextDrawSetString(TdNachricht, msgstr);
ShowDiscInfo();
SetTimer("HideDiscInfo", TIME_to_HIDE, false);
if(Maske[playerid] == 1)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
ShowPlayerNameTagForPlayer(i, playerid, 1);
}
}
DestroyPickup(TotenKopf[playerid]);
PlayerInfo[playerid][pAdjustable] = 1;
if(IsPlayerNPC(playerid))
{
ConnectNPC("NeuerBot", "NeuerBot");
}
if(AdminDuty[playerid] == 1)
{
Delete3DTextLabel(Admin[playerid]);
Delete3DTextLabel(Supermod[playerid]);
Delete3DTextLabel(Mod[playerid]);
Delete3DTextLabel(Supporter[playerid]);
SetPlayerColor(playerid,TEAM_HIT_COLOR);
AdminDuty[playerid] = 0;
}
if(BlindFold[playerid] == 1)
{
BlindFold[playerid] = 0;
}
if(Noobi[playerid] == 1)
{
Delete3DTextLabel(Noob[playerid]);
Noobi[playerid] = 0;
}
if(PlayerInfo[playerid][pMauled] == 1)
{
PlayerInfo[playerid][pMauled] = 0;
}
if(PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24 && BlitzerErstellt[playerid] == 1)
{
RemoveBlitzer(playerid);
}
if(PlayerTied[playerid] == 1)
{
PlayerInfo[playerid][pGangJailed] = 1;
PlayerTied[playerid] = 0;
}
if(IsTowTrucker[playerid] == 1)
{
IsTowTrucker[playerid] = 0;
TowTruckers--;
}
new sendername[MAX_PLAYER_NAME];
new string[200];
GetPlayerName(playerid,sendername,sizeof(sendername));
OnPlayerCarUpdate(playerid);
DestroyDynamicObject(Sperre[playerid][0]);
DestroyDynamicObject(Sperre[playerid][1]);
DestroyDynamicObject(Sperre[playerid][2]);
DestroyDynamicObject(Sperre[playerid][3]);
DestroyDynamicObject(Sperre[playerid][4]);
Sperrebit[playerid]=0;
Pylonenbit[playerid]=0;
// Barrierenbit[playerid]=0;
InCargo[playerid] = 0; InLevi[playerid] = 0; InEnfo[playerid] = 0;
if(darfhacken[playerid] == 1)
{
KillTimer(hacktimer[playerid]);
}
if(amhacken[playerid] == 1)
{
KillTimer(hackertimer[playerid]);
}
if(reason == 1)
{
if(PlayerCuffed[playerid] >= 1)
{
OfflineFlucht[playerid] = 1;
format(string,sizeof(string),"Warnung %s ist Gefesselt Offline gegangen!(Offline-Flucht))",sendername);
ABroadCast(COLOR_YELLOW,string,1);
//mepmöp
}
}
if(reason == 0)
{
if(PlayerCuffed[playerid] >= 1)
{
//OfflineFlucht[playerid] = 2;
format(string,sizeof(string),"Warnung %s hatte gefesselt einen Exe-Crash! Er wird nicht ins Auto-Jail kommen.",sendername);
ABroadCast(COLOR_YELLOW,string,1);
//mepmöp
}
}
if(supmobil[playerid] != 0) DestroyVehicle(supmobil[playerid]);
/*switch(reason)
{
case 0://time
{}
case 1://discon
{
if(PlayerCuffed[playerid] >= 1)
{
OfflineFlucht[playerid] = 1;
format(string,sizeof(string),"Warnung %s ist Gefesselt Offline gegangen!(Offline-Flucht))",sendername);
ABroadCast(COLOR_YELLOW,string,1);
//mepmöp
}
}
case 2://kick
{}
}*/
gActivePlayers[playerid]--;
numplayers--;
PlayerInfo[playerid][pAdjustable] = 1;
PlayerUpdate(playerid);GetPlayerName(playerid,sendername,sizeof(sendername));
format(string,sizeof(string),"%s war nun %d Minuten online! (ID: %d | IP: %s)",sendername,PlayerInfo[playerid][pMinutesSinceLogin],playerid,pIP[playerid]);
Log("Online.txt",string);for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(TaxiAccepted[i] < 999)
{
if(TaxiAccepted[i] == playerid)
{
TaxiAccepted[i] = 999;
GameTextForPlayer(i, "~w~Kunde~n~~r~Hat das Spiel Verlassen", 5000, 1);
TaxiCallTime[i] = 0;
DisablePlayerCheckpoint(i);
}
}
else if(BusAccepted[i] < 999)
{
if(BusAccepted[i] == playerid)
{
BusAccepted[i] = 999;
GameTextForPlayer(i, "~w~Kunde~n~~r~Hat Spiel Verlassen", 5000, 1);
BusCallTime[i] = 0;
DisablePlayerCheckpoint(i);
}
}
}
}
if(GettingCK[playerid] < 999)
{
if(IsPlayerConnected(GettingCK[playerid]))
{
SendClientMessage(GettingCK[playerid], COLOR_YELLOW, "Dein Abschuss hat den Server verlassen, versuch es später nochmal.");
OnCK[GettingCK[playerid]] = 999;
}
}
if(TransportCost[playerid] > 0 && TransportDriver[playerid] < 999)
{
if(IsPlayerConnected(TransportDriver[playerid]))
{
TransportMoney[TransportDriver[playerid]] += TransportCost[playerid];
TransportTime[TransportDriver[playerid]] = 0;
TransportCost[TransportDriver[playerid]] = 0;
format(string, sizeof(string), "~w~Kunde ist ausgestiegen~n~~g~Verdienst: $%d",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, "Er hat den Server verlassen.");
GoChase[GetChased[playerid]] = 999;
}
}
}
if(ReportCall[playerid] != 999)
{
if(IsPlayerConnected(ReportCall[playerid]))
{
ReportCall[ReportCall[playerid]] = 999;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[SUPPORT] %s Hat den Server verlassen! /Support automatisch geschlossen", sendername);
SendClientMessage(ReportCall[playerid], COLOR_LIGHTGREEN,string);
ReportCall[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(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);
GameTextForPlayer(Boxer2, "~r~Kampf unterbrochen", 5000, 1);
}
}
else if(Boxer2 == playerid)
{
if(IsPlayerConnected(Boxer1))
{
PlayerBoxing[Boxer1] = 0;
SetPlayerPos(Boxer1, 765.8433,3.2924,1000.7186);
SetPlayerInterior(Boxer1, 5);
GameTextForPlayer(Boxer1, "~r~Kampf unterbrochen", 5000, 1);
}
}
InRing = 0;
RoundStarted = 0;
Boxer1 = 255;
Boxer2 = 255;
TBoxer = 255;
}
if(TransportDuty[playerid] == 1)
{
TaxiDrivers -= 1;
}
else if(TransportDuty[playerid] == 2)
{
BusDrivers -= 1;
}
if(IsPlayerInFrac(playerid, 4))
{
if(JobDuty[playerid] == 1)
{
Medics -= 1;
}
}
else if(PlayerInfo[playerid][pLeader] == 24 || PlayerInfo[playerid][pMember] == 24)
{
if(JobDuty[playerid] == 1) { Mechanics -= 1; }
}
if (PlayerInfo[playerid][pRoadblock] != 0)
{
RemoveRoadblock(playerid);
}return 1;
}Wat soll ich da bitte löschen (sorry bin da net so fit)
-
wie meinste, welche Werte löschen ?
-
public OnPlayerRegister(playerid, password[])
{
if(IsPlayerConnected(playerid))
{
new string3[64];
new playername3[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername3, sizeof(playername3));
format(string3, sizeof(string3), "/Accounts/%s.ini", playername3);
new File: hFile = fopen(string3, io_write);
if (hFile)
{
strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
new var[32];
format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
PlayerInfo[playerid][pCash] = GetPlayerMoney(playerid);
format(var, 32, "Level=%d\n",PlayerInfo[playerid][pLevel]);fwrite(hFile, var);
format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
format(var, 32, "Supporter=%d\n",PlayerInfo[playerid][pSupporter]);fwrite(hFile, var);
format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var);
format(var, 32, "UpgradePoints=%d\n",PlayerInfo[playerid][gPupgrade]);fwrite(hFile, var);
format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
format(var, 32, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
format(var, 32, "Sex=%d\n",PlayerInfo[playerid][pSex]);fwrite(hFile, var);
format(var, 32, "Age=%d\n",PlayerInfo[playerid][pAge]);fwrite(hFile, var);
format(var, 32, "Origin=%d\n",PlayerInfo[playerid][pOrigin]);fwrite(hFile, var);
format(var, 32, "CK=%d\n",PlayerInfo[playerid][pCK]);fwrite(hFile, var);
format(var, 32, "Muted=%d\n",PlayerInfo[playerid][pMuted]);fwrite(hFile, var);
format(var, 32, "Respect=%d\n",PlayerInfo[playerid][pExp]);fwrite(hFile, var);
format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
format(var, 32, "Bank=%d\n",PlayerInfo[playerid][pAccount]);fwrite(hFile, var);
format(var, 32, "Kredit=%d\n",PlayerInfo[playerid][pPlayerKredit]);fwrite(hFile, var);
format(var, 32, "KreditDauer=%d\n",PlayerInfo[playerid][pPlayerKreditDauer]);fwrite(hFile, var);
format(var, 32, "Crimes=%d\n",PlayerInfo[playerid][pCrimes]);fwrite(hFile, var);
format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
format(var, 32, "Arrested=%d\n",PlayerInfo[playerid][pArrested]);fwrite(hFile, var);
format(var, 32, "WantedDeaths=%d\n",PlayerInfo[playerid][pWantedDeaths]);fwrite(hFile, var);
format(var, 32, "Phonebook=%d\n",PlayerInfo[playerid][pPhoneBook]);fwrite(hFile, var);
format(var, 32, "LottoNr=%d\n",PlayerInfo[playerid][pLottoNr]);fwrite(hFile, var);
format(var, 32, "Fishes=%d\n",PlayerInfo[playerid][pFishes]);fwrite(hFile, var);
format(var, 32, "BiggestFish=%d\n",PlayerInfo[playerid][pBiggestFish]);fwrite(hFile, var);
format(var, 32, "Job=%d\n",PlayerInfo[playerid][pJob]);fwrite(hFile, var);
format(var, 32, "Paycheck=%d\n",PlayerInfo[playerid][pPayCheck]);fwrite(hFile, var);
format(var, 32, "HeadValue=%d\n",PlayerInfo[playerid][pHeadValue]);fwrite(hFile, var);
format(var, 32, "Jailed=%d\n",PlayerInfo[playerid][pJailed]);fwrite(hFile, var);
format(var, 32, "GangJailed=%d\n",PlayerInfo[playerid][pGangJailed]);fwrite(hFile, var);
format(var, 32, "wJailed=%d\n",PlayerInfo[playerid][pwJailed]);fwrite(hFile, var);
format(var, 32, "Mauled=%d\n",PlayerInfo[playerid][pMauled]);fwrite(hFile, var);
format(var, 32, "JailTime=%d\n",PlayerInfo[playerid][pJailTime]);fwrite(hFile, var);
format(var, 32, "Materials=%d\n",PlayerInfo[playerid][pMats]);fwrite(hFile, var);
format(var, 32, "Drugs=%d\n",PlayerInfo[playerid][pDrugs]);fwrite(hFile, var);
format(var, 32, "FightingStyle=%d\n",GetPlayerFightingStyle(playerid));fwrite(hFile, var);
format(var, 32, "Leader=%d\n",PlayerInfo[playerid][pLeader]);fwrite(hFile, var);
format(var, 32, "Member=%d\n",PlayerInfo[playerid][pMember]);fwrite(hFile, var);
format(var, 32, "FMember=%d\n",PlayerInfo[playerid][pFMember]);fwrite(hFile, var);
format(var, 32, "Rank=%d\n",PlayerInfo[playerid][pRank]);fwrite(hFile, var);
format(var, 32, "Char=%d\n",PlayerInfo[playerid][pChar]);fwrite(hFile, var);
format(var, 32, "ContractTime=%d\n",PlayerInfo[playerid][pContractTime]);fwrite(hFile, var);
format(var, 32, "DetSkill=%d\n",PlayerInfo[playerid][pDetSkill]);fwrite(hFile, var);
format(var, 32, "SexSkill=%d\n",PlayerInfo[playerid][pSexSkill]);fwrite(hFile, var);
format(var, 32, "BoxSkill=%d\n",PlayerInfo[playerid][pBoxSkill]);fwrite(hFile, var);
format(var, 32, "LawSkill=%d\n",PlayerInfo[playerid][pLawSkill]);fwrite(hFile, var);
format(var, 32, "MechSkill=%d\n",PlayerInfo[playerid][pMechSkill]);fwrite(hFile, var);
format(var, 32, "JackSkill=%d\n",PlayerInfo[playerid][pJackSkill]);fwrite(hFile, var);
format(var, 32, "CarSkill=%d\n",PlayerInfo[playerid][pCarSkill]);fwrite(hFile, var);
format(var, 32, "NewsSkill=%d\n",PlayerInfo[playerid][pNewsSkill]);fwrite(hFile, var);
format(var, 32, "DrugsSkill=%d\n",PlayerInfo[playerid][pDrugsSkill]);fwrite(hFile, var);
format(var, 32, "CookSkill=%d\n",PlayerInfo[playerid][pCookSkill]);fwrite(hFile, var);
format(var, 32, "FishSkill=%d\n",PlayerInfo[playerid][pFishSkill]);fwrite(hFile, var);
format(var, 32, "pSHealth=%.1f\n",PlayerInfo[playerid][pSHealth]);fwrite(hFile, var);
GetPlayerHealth(playerid,PlayerInfo[playerid][pHealth]);
format(var, 32, "pHealth=%.1f\n",PlayerInfo[playerid][pHealth]);fwrite(hFile, var);
format(var, 32, "Int=%d\n",PlayerInfo[playerid][pInt]);fwrite(hFile, var);
format(var, 32, "Local=%d\n",PlayerInfo[playerid][pLocal]);fwrite(hFile, var);
format(var, 32, "Team=%d\n",PlayerInfo[playerid][pTeam]);fwrite(hFile, var);
format(var, 32, "Model=%d\n",PlayerInfo[playerid][pModel]);fwrite(hFile, var);
format(var, 32, "PhoneNr=%d\n",PlayerInfo[playerid][pPnumber]);fwrite(hFile, var);
format(var, 32, "House=%d\n",PlayerInfo[playerid][pPhousekey]);fwrite(hFile, var);
format(var, 32, "Bizz=%d\n",PlayerInfo[playerid][pPbiskey]);fwrite(hFile, var);
format(var, 32, "HandyGeld=%d\n",PlayerInfo[playerid][pHandyGeld]);fwrite(hFile, var);
format(var, 32, "HandyVer=%d\n",PlayerInfo[playerid][pHandyVer]);fwrite(hFile, var);
if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0))
{
PlayerInfo[playerid][pPos_x] = 1684.9;
PlayerInfo[playerid][pPos_y] = -2244.5;
PlayerInfo[playerid][pPos_z] = 13.5;
}
if(Spectate[playerid] != 255)
{
PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx];
PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy];
PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz];
PlayerInfo[playerid][pInt] = Unspec[playerid][sPint];
PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal];
}
format(var, 32, "Pos_x=%.1f\n",PlayerInfo[playerid][pPos_x]);fwrite(hFile, var);
format(var, 32, "Pos_y=%.1f\n",PlayerInfo[playerid][pPos_y]);fwrite(hFile, var);
format(var, 32, "Pos_z=%.1f\n",PlayerInfo[playerid][pPos_z]);fwrite(hFile, var);
format(var, 32, "CarLic=%d\n",PlayerInfo[playerid][pCarLic]);fwrite(hFile, var);
format(var, 32, "NewLic=%d\n",PlayerInfo[playerid][pNewLic]);fwrite(hFile, var);
format(var, 32, "FlyLic=%d\n",PlayerInfo[playerid][pFlyLic]);fwrite(hFile, var);
format(var, 32, "BoatLic=%d\n",PlayerInfo[playerid][pBoatLic]);fwrite(hFile, var);
format(var, 32, "FishLic=%d\n",PlayerInfo[playerid][pFishLic]);fwrite(hFile, var);
format(var, 32, "GunLic=%d\n",PlayerInfo[playerid][pGunLic]);fwrite(hFile, var);// hier wird der schein in der Spieler .ini gespeichert
format(var, 32, "LKWLic=%d\n",PlayerInfo[playerid][pLKWLic]);fwrite(hFile, var);
format(var, 32, "MotoLic=%d\n",PlayerInfo[playerid][pMotoLic]);fwrite(hFile, var);
format(var, 32, "Zig=%d\n",PlayerInfo[playerid][pZig]);fwrite(hFile, var);
format(var, 32, "Kekse=%d\n",PlayerInfo[playerid][pKekse]);fwrite(hFile, var);
format(var, 32, "ZigSucht=%d\n",PlayerInfo[playerid][pZigSucht]);fwrite(hFile, var);
format(var, 32, "Gun1=%d\n",PlayerInfo[playerid][pGun1]);fwrite(hFile, var);
format(var, 32, "Gun2=%d\n",PlayerInfo[playerid][pGun2]);fwrite(hFile, var);
format(var, 32, "Gun3=%d\n",PlayerInfo[playerid][pGun3]);fwrite(hFile, var);
format(var, 32, "Gun4=%d\n",PlayerInfo[playerid][pGun4]);fwrite(hFile, var);
format(var, 32, "Ammo1=%d\n",PlayerInfo[playerid][pAmmo1]);fwrite(hFile, var);
format(var, 32, "Ammo2=%d\n",PlayerInfo[playerid][pAmmo2]);fwrite(hFile, var);
format(var, 32, "Ammo3=%d\n",PlayerInfo[playerid][pAmmo3]);fwrite(hFile, var);
format(var, 32, "Ammo4=%d\n",PlayerInfo[playerid][pAmmo4]);fwrite(hFile, var);
format(var, 32, "CarTime=%d\n",PlayerInfo[playerid][pCarTime]);fwrite(hFile, var);
format(var, 32, "Mulltime=%d\n",PlayerInfo[playerid][pMulltime]);fwrite(hFile, var);
format(var, 32, "PayDay=%d\n",PlayerInfo[playerid][pPayDay]);fwrite(hFile, var);
format(var, 32, "PayDayHad=%d\n",PlayerInfo[playerid][pPayDayHad]);fwrite(hFile, var);
format(var, 32, "CDPlayer=%d\n",PlayerInfo[playerid][pCDPlayer]);fwrite(hFile, var);
format(var, 32, "Wins=%d\n",PlayerInfo[playerid][pWins]);fwrite(hFile, var);
format(var, 32, "Loses=%d\n",PlayerInfo[playerid][pLoses]);fwrite(hFile, var);
format(var, 32, "AlcoholPerk=%d\n",PlayerInfo[playerid][pAlcoholPerk]);fwrite(hFile, var);
format(var, 32, "DrugPerk=%d\n",PlayerInfo[playerid][pDrugPerk]);fwrite(hFile, var);
format(var, 32, "MiserPerk=%d\n",PlayerInfo[playerid][pMiserPerk]);fwrite(hFile, var);
format(var, 32, "PainPerk=%d\n",PlayerInfo[playerid][pPainPerk]);fwrite(hFile, var);
format(var, 32, "TraderPerk=%d\n",PlayerInfo[playerid][pTraderPerk]);fwrite(hFile, var);
format(var, 32, "Tutorial=%d\n",PlayerInfo[playerid][pTut]);fwrite(hFile, var);
format(var, 32, "Warnings=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var);
format(var, 32, "Adjustable=%d\n",PlayerInfo[playerid][pAdjustable]);fwrite(hFile, var);
format(var, 32, "Fuel=%d\n",PlayerInfo[playerid][pFuel]);fwrite(hFile, var);
format(var, 32, "Married=%d\n",PlayerInfo[playerid][pMarried]);fwrite(hFile, var);
format(var, 32, "MarriedTo=%s\n",PlayerInfo[playerid][pMarriedTo]);fwrite(hFile, var);
format(var, 32, "SpawnChange=%d\n",SpawnChange[playerid]);fwrite(hFile, var);
format(var, 32, "WantedLevel=%d\n",WantedLevel[playerid]);fwrite(hFile, var);
format(var, 32, "WantedPoints=%d\n",WantedPoints[playerid]);fwrite(hFile, var);
format(var, 32, "PlayMinutes=%d\n",PlayerInfo[playerid][pPlayMinutes]);fwrite(hFile, var);
format(var, 32, "GesamtMinutes=%d\n",PlayerInfo[playerid][pGesamtMinutes]);fwrite(hFile, var);
format(var, 32, "MinutesSinceAn=%d\n",PlayerInfo[playerid][pMinutesSinceAn]);fwrite(hFile, var);
format(var, 32, "SFPASS=%d\n",PlayerInfo[playerid][pSFPASS]);fwrite(hFile, var);
format(var, 32, "LVPASS=%d\n",PlayerInfo[playerid][pLVPASS]);fwrite(hFile, var);
format(var, 32, "Offflucht=%d\n",OfflineFlucht[playerid]);fwrite(hFile, var);
format(var, 32, "Knast=%d\n",Knast[playerid]);fwrite(hFile, var);
format(var, 32, "Uhr=%d\n",PlayerInfo[playerid][pUhrID]);fwrite(hFile, var);
format(var, 32, "Handy=%d\n",PlayerInfo[playerid][pHandyID]);fwrite(hFile, var);
format(var, 32, "KnastTime=%d\n",KnastTime[playerid]);fwrite(hFile, var);
format(var, 32, "Perso=%d\n",PlayerInfo[playerid][pOwnPerso]);fwrite(hFile, var);
format(var, 32, "FrakSperre=%d\n",PlayerInfo[playerid][pFrakSperre]);fwrite(hFile, var);
format(var, 32, "Gehalt=%d\n",PlayerInfo[playerid][pGehalt]);fwrite(hFile, var);
format(var, 32, "InvWeapon=%d\n",PlayerInfo[playerid][pInvWeapon]);fwrite(hFile, var);
format(var, 32, "InvAmmo=%d\n",PlayerInfo[playerid][pInvAmmo]);fwrite(hFile, var);
format(var, 32, "InvWeapon2=%d\n",PlayerInfo[playerid][pInvWeapon2]);fwrite(hFile, var);
format(var, 32, "InvAmmo2=%d\n",PlayerInfo[playerid][pInvAmmo2]);fwrite(hFile, var);
format(var, 32, "FlugTime=%d\n",PlayerInfo[playerid][pFlugTime]);fwrite(hFile, var);
format(var, 32, "FarSsssmTime=%d\n",PlayerInfo[playerid][pFarmTime]);fwrite(hFile, var);
format(var, 32, "GDeaths=%d\n",PlayerInfo[playerid][pGDeaths]);fwrite(hFile, var);
format(var, 32, "GKills=%d\n",PlayerInfo[playerid][pGKills]);fwrite(hFile, var);
format(var, 32, "Meldung=%d\n",PlayerInfo[playerid][pMeldung]);fwrite(hFile, var);
//format(var, 32, "Wanteds=%d\n",WantedLevel[playerid]);fwrite(hFile, var);
fclose(hFile);
new clientlogonmsg[512];
format(clientlogonmsg, sizeof clientlogonmsg, "%s hat sich registriert.", playername3);
ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Bitte logge dich nun in deinen Account ein!","Login","Abbrechen");
}
}
return 1;
}Bitteschön ich hoff das reicht ;D
-
Hallo liebe Breadfische
Ich habe eine kleines bzw. größeres Problem, mein Script vertauscht statistiken und passwörter der Spieler das hat die Folge, dass...
1.Die Leute sich nicht einloggen können
2.Sie [manchmal] einen Admin Rang besitzen
.
.
.Da ich auf keine Lösung des Problems komme wollte ich euch als Erfahrene mal Fragen, wie ich das wieder ins Gleichgewicht bringe.
MFG
Mr_Lolboy -
Ich werde mal die Filterscripts raus nehmen und noch einmal das komplett austesten...
//edit Vielen Dank Kinq du hast ein Lob verdient es hing an einem Filterscript, war mein Fehler... wie peinlich
-
Ein Anticheat ist vorhanden aber nur das Standardmäßige (Godfather)
Welche genauen Codes benötigst du wenn ich noch nicht einmal ein blassen schimmer haben an was das liegt...
-
Hab ich auch schon gemacht aber mir ist nichts aufgefallen, danke trotzdem
PS: Eig kann es im Script bei Commands nicht stehen, da es ja auch bei commands passiert die nicht existieren (z.B. /test /toll /gut).
-
Hallo liebe Community!
Wie schon die oben genannte Überschrift lautet werden bei mir auf dem server bei JEDEM Command den man eingibt (auch wenn es ihn eig nicht gibt), die Waffen resettet. An was könnte das liegen
Danke im Vorraus
Mr_Lolboy
-
FEHLER ich bitte um schnelle HILFE
Danke für die Antwort warst hilfreich jetzt hab ich aber ein
anderes Probl. Im Script wo ich vorher auch hatte immer 2 WarningsUnd heute habe ich von vielen Usern mitbekommen das ihr Passwort
nichmehr stimmen würde und das ihr Account nich gefunden wird oder sie
TVen beim Joinen einen anderen ohne Einloggen.PAWN Quelltext
1
2
3
4
5
6
7
8
9
10
11
12FEHLERMELDUNGEN:
C:\Users\BENUTZER\Desktop\Spiele\GTA San Andreas\GTA SERVER\SERVER WICHTIG\gamemodes\Script.pwn(6270) : warning 225: unreachable code
C:\Users\BENUTZER\Desktop\Spiele\GTA San Andreas\GTA SERVER\SERVER WICHTIG\gamemodes\Script.pwn(54917) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhaseHeader size: 14672 bytes
Code size: 2666420 bytes
Data size: 26882520 bytes
Stack/heap size: 32768 bytes; estimated max. usage: unknown, due to recursion
Total requirements:29596380 bytes2 Warnings.
Hier zu den Fehlern
PAWN Quelltext
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
411.Fehler
if(gPlayerAccount[playerid] == 1)
{
ForceClassSelection(playerid);
TogglePlayerSpectating(playerid, 0);
}
else if(gPlayerAccount[playerid] == 0)
{
ForceClassSelection(playerid);
TogglePlayerSpectating(playerid, 0);
}
return 1;2.Fehler
new sendername[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[Leitstelle] %s hat einen Streifenwagen angefordert, Gib (/accept polizei) ein um den Auftrag anzunehmen.", sendername);
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == 1 PlayerInfo[i][pLeader] == 1)
{
SendClientMessage(i, COLOR_LIGHTBLUE, string);
}
}
}
SendClientMessage(playerid, COLOR_LIGHTBLUE, " * Du hast einen Streifenwafen gerufen, warte auf eine Antwort.");
SetTimerEx("ServiceReset", 30000, false, "i", playerid);
JustService[playerid] = 1;
CopCall = playerid;
return 1;
}
}
}
} -
Wie schon die Überschrift besagt möchte ich gerne wissen wie man die Bundeswehr Frak. sofort spawnen lassen kann ohne ins Krankenhaus zu kommen und wenn er dann gespawnt ist das er zwischen 2 Spawnpunkte wählen kann (2 Basen)
-
Also ich benutze weder mods noch irgendetwas kann das vielleicht an der Farbe oder so liegen gemapptes kanns glaub ich ma net sein
-
Guten Tag Liebe Comunity!
Also auf meinem Server ist öfters das Problem mit diesem Code gekommen.
Es ist nur manchmal und nur an bestimmten Stellen da (z.B. am Ammunation in LS)
Das größte Probl. ist das bei 6 davon das Spiel von mir und auch von den anderen Usern crasht.
Das nervt sehr.Wäre nett wenn ihr mir helfen könntet...
MFG
Mr_Lolboy -
Ich bedanke mich schon mal für die schnelle Rückantwort dieser Bug ist nur manchmal vorhanden.
Als Copcar etc. wird es nicht erstellt ich hab 0 Ahnung wie ich das beheben kann wäre nett wenn mir jemand weiter hilft -
Sorry bin neu hier aber meine Frage steht immer noch kann mir da einer helfen...
Ich bin dann mal off hoffentlich hilft mir bis morgen jemand sonst hab ich en riesen problem...
-
Function OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
FRAC_OnPlayerEnterVehicle(playerid, vehicleid, ispassenger);
if(GetVehicleModel(vehicleid) == 456 && ispassenger != 1)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "*Mit diesem Fahrzeug kannst du Produkte ausliefern.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "*Kaufen kannst du Produkte am LS Airport Eingang.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "*Verkaufen kannst du sie an jedem Business, dass Produkte braucht.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "*Befehl: /produkte, viel Spaß.");
}
if(IsANoTachoVehicle(vehicleid) || IsPlayerNPC(playerid))
{
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vehicleid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
}
if(GetVehicleModel(vehicleid) == 548 && ispassenger == 1)
{
PutPlayerInVehicle(playerid, vehicleid, 1);
TogglePlayerControllable(playerid, 1);
InCargo[playerid] = vehicleid;
}
if(GetVehicleModel(vehicleid) == 417 && ispassenger == 1)
{
PutPlayerInVehicle(playerid, vehicleid, 1);
TogglePlayerControllable(playerid, 1);
InLevi[playerid] = vehicleid;
}
if(GetVehicleModel(vehicleid) == 427 && ispassenger == 1)
{
PutPlayerInVehicle(playerid, vehicleid, 1);
TogglePlayerControllable(playerid, 1);
InEnfo[playerid] = vehicleid;
}
if(PlayerInfo[playerid][pAdmin] == 0)
{
if(GetVehicleModel(vehicleid) == 432 || GetVehicleModel(vehicleid) == 425 || GetVehicleModel(vehicleid) == 520)
{
if(IsPlayerInFrac(playerid,3)|| PlayerInfo[playerid][pLeader] == 7) { }
else
{
SendClientMessage(playerid,COLOR_RED,"Du weißt nicht wie du in das Fahrzeug kommen sollst!");
TogglePlayerControllable(playerid,false);
TogglePlayerControllable(playerid,true);
}
}
if (IsACopCar(vehicleid) && !ispassenger)
{
if(IsACop(playerid) || IsPlayerInFrac(playerid,23)) {}
else
{
SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel");
TogglePlayerControllable(playerid,false);
TogglePlayerControllable(playerid,true);
}
}
if (IsAFbiCar(vehicleid) && !ispassenger)
{
if(IsACop(playerid) || IsPlayerInFrac(playerid,23)) {}
else
{
SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel");
TogglePlayerControllable(playerid,false);
TogglePlayerControllable(playerid,true);
}
}
if (IsAFahrschulVeh(vehicleid) && !ispassenger)
{
if(PlayerInfo[playerid][pLeader] == 11 || PlayerInfo[playerid][pMember]== 11 || TakingLesson[playerid] == 1)
{
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Du hast keinen Schlüssel!");
TogglePlayerControllable(playerid, 1); //Stoppt Betreten des Autos
}
}
if (IsACopCar(vehicleid) && !ispassenger)
{
if(IsACop(playerid) || IsPlayerInFrac(playerid,3)) {}
else
{
SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel");
TogglePlayerControllable(playerid,false);
TogglePlayerControllable(playerid,true);
}
}
if (IsAnAmbulance(vehicleid) && !ispassenger)
{
if(IsPlayerInFrac(playerid,4) || IsPlayerInFrac(playerid,22)) {}
else
{
SendClientMessage(playerid,COLOR_RED,"Du hast keine Schlüssel");
TogglePlayerControllable(playerid, 1); //Stoppt Betreten des AutosSind das die richtigen zeilen??? da ist teilweise auch noch was mit fraktionen dabei...
-
Hallo Leute
Ich wollte euch fragen wie ich diese Problem losbekomme.
Meine User melden mir das manchmal da stehen würde wenn sie das Auto gekauft haben und den Carkey ausgewählt haben und anschließend ind das Auto rein gehen wollen, sie hätten keinen Schlüssel für dieses Fahrzeug.Was ich gerne von euch wissen möchte ist wie ich das fixe...
MFG Mr_Lolboy