lade die map neu und er sitzt drinnen oder fahr einfach weiter (nach etwa 30sek sitzt er dann auch drinnen)
Beiträge von Mustang96
-
-
Ist doch nichts schweres drann?
einfach z.b. das Autohaussystem von Simon nehmen und für Fraktionen umschreibensuche ebenfalls ein script, hast du den link von Simon's für mich?
Danke im Vorraus! -
zeilen bitte markieren!!
-
PlayerInfo
enum pInfo
{
pKey[128],
pLevel,
pAdmin,
pSupporter,
pDonateRank,
gPupgrade,
pConnectTime,
pReg,
pSex,
pAge,
pOrigin,
pCK,
pMuted,
pExp,
pCash,
pAccount,
pCrimes,
pKills,
pDeaths,
pArrested,
pWantedDeaths,
pPhoneBook,
pLottoNr,
pLottoNr2,
pFishes,
pBiggestFish,
pJob,
pPayCheck,
pHeadValue,
pJailed,
pJailTime,
pMats,
pDrugs,
pLeader,
pMember,
pFMember,
pRank,
pChar,
pContractTime,
pDetSkill,
pSexSkill,
pBoxSkill,
pLawSkill,
pMechSkill,
pJackSkill,
pCarSkill,
pNewsSkill,
pDrugsSkill,
pCookSkill,
pFishSkill,
Float:pHealth,
Float:pSHealth,
pInt,
pLocal,
pTeam,
pModel,
pPnumber,
pPhousekey,
pPbiskey,
Float:pPos_x,
Float:pPos_y,
Float:pPos_z,
pCarLic,
pNewLic,
pFlyLic,
pBoatLic,
pFishLic,
pGunLic, //Definition des Scheines zb die Aufgabe später
pLKWLic,
pMotoLic,
pZig,
pZigSucht,
pGun1,
pGun2,
pGun3,
pGun4,
pAmmo1,
pAmmo2,
pAmmo3,
pAmmo4,
pCarTime,
pPayDay,
pPayDayHad,
pCDPlayer,
pWins,
pLoses,
pAlcoholPerk,
pDrugPerk,
pMiserPerk,
pPainPerk,
pTraderPerk,
pTut,
pWarns,
pAdjustable,
pFuel,
pMarried,
pMarriedTo[128],
pRoadblock,
pPlayMinutes,
pGesamtMinutes,
pMinutesSinceLogin,
pMinutesSinceAn,
pSFPASS,
pLVPASS,
pHandyGeld,
pHandyVer,
pUhrID,
pHandyID,
pTot,
Float:pTx,
Float:pTy,
Float:pTz,
pOwnPerso,
pOwnAntrag,
pPersoStop,
pFrakSperre,
Text:LetterboxTop,Text:LetterboxBottom2, Text:LetterboxBottom,
pEingangsTimer,
WAKA,
BSNENTER,
AMMU,
SEKDuty,
pMuteTime,
SweepMission,
Haltestelle,
Haltestelle2,
Mieten,
Bankrob,
pPay,
Maske,
WantedTot,
DM,
pAusrauben,
pBombe,
pHelm,
pSchein,
ScheinOffer,};
new PlayerInfo[MAX_PLAYERS][pInfo]; -
mach doch die ausgabe mit ein else
ist viel besser und schner als so eine zugeängte kackeif(PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20)
{
//wen er es ist
}
else
{
SendClientMessage(playerid,COLOR_RED,"Du bist kein Wheelman!");
return 1;
}
warning ist immernoch da xD -
ohne ,!,
if(PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20) { return SendClientMessage(playerid,COLOR_RED,"Du bist kein Wheelman!"); }
Das ! ist für ein "not" also wenn das nicht der fall ist -
Hallo,
ich habe seit heute diese Warnings:
die Zeile:if(PlayerInfo[i][0] > 0)
Zeilen Zuvor & dannach:
public SaveAccounts()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
OnPlayerUpdate(i);
if(PlayerInfo[i][0] > 0)
{
if(PlayerInfo[i][pContractTime] < 25)
{
PlayerInfo[i][pContractTime] ++;
}
}
}
}
}Nummer Zwei:
die Zeile:if(!PlayerInfo[playerid][pMember] == 20 || !PlayerInfo[playerid][pLeader] == 20) { return SendClientMessage(playerid,COLOR_RED,"Du bist kein Wheelman!"); }
Zeilen Zuvor & dannach:
dcmd_take(playerid,params[])
{
new pID,seatid,string[64],pName[MAX_PLAYER_NAME],pIdName[MAX_PLAYER_NAME];
if(!IsPlayerInAnyVehicle(playerid)) { return SendClientMessage(playerid,COLOR_RED,"Du bist in keinem Fahrzeug!"); }
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) { return SendClientMessage(playerid,0xAFAFAFAA,"Du bist nicht der Fahrer!"); }
if(sscanf(params,"ud",pID,seatid)) { return SendClientMessage(playerid,0xAFAFAFAA,"SYNTAX: /take [playerid] [SitzId]"); }
if(!IsPlayerConnected(pID)) { return SendClientMessage(playerid,COLOR_RED,"Ungültige ID!"); }
if(GetDistanceBetweenPlayers(playerid,pID) > 6.0) { return SendClientMessage(playerid,COLOR_GREY,"Du bist zu weit entfernt!"); }
if(!IsPlayerInAnyVehicle(pID)) { return SendClientMessage(playerid,COLOR_RED,"Der Spieler ist in keinem Fahrzeug!"); }
if(!PlayerInfo[playerid][pMember] == 20 || !PlayerInfo[playerid][pLeader] == 20) { return SendClientMessage(playerid,COLOR_RED,"Du bist kein Wheelman!"); }
GetPlayerName(playerid,pName,sizeof(pName));
GetPlayerName(pID,pIdName,sizeof(pIdName));
PutPlayerInVehicle(pID,GetPlayerVehicleID(playerid),seatid);
TogglePlayerControllable(pID,1);
PlayerTied[pID] = 0;
PlayerCuffed[pID] = 0;
format(string,sizeof(string),"Du hast %s in dein Fahrzeug gezogen!",pIdName);
SendClientMessage(playerid,COLOR_GREY,string);new plname[MAX_PLAYER_NAME];
GetPlayerName(playerid, plname, sizeof(plname));
format(string, sizeof(string), "%s befreit %s und zieht ihn in sein Fahrzeug.", plname, pIdName);
ProxDetector(15.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);GameTextForPlayer(pID,"~r~Befreit!",5000,3);
GameTextForPlayer(playerid,"~r~Erfolgreich befreit!",5000,3);
return 1;
} -
nice
10/10würdest du sie verkaufen? (-> PN)
-
Hammer, ich weiß garnicht, was ich sagen soll!!
-
Damit kann er aber ned höher fliegen, Kaliber, damit wird seine Position ganz weit hoch gesetzt sobald er ein Stück über MAX_HIGH ist.
Er will ja flüssig durchfliegen können, statt herum geportet zu werden.
Wie willst du außerdem wieder herunter kommen? Einmal über MAX_HIGH und du wirst die ganze Zeit wieder dahin gesetzt...
hab ich eben bemerkt xD -
WTF, wie hoch willst du denn fliegen
Aber doch das ist möglich, finde die maximale Höhe raus starte einen Timer, wenn die Z-Achse(Höhe) die maximale Höhe erreicht hat soll er hochgedrückt werden mit:
http://wiki.sa-mp.com/wiki/GetVehicleVelocity
Da drückst du die Z-Achse hoch, dann könnte es gehen
mfg.
so hab ich es schon versucht, hab nur kein funktionierendes script zusammen bekommen -
Hallo,
man kann ja bekannterweise mit Fahrzeugen nur eine bestimmte Höhe erreichen.
Kann man die irgendwie verändern/deaktivieren?Danke im Vorraus
-
Gefällt mir
8/10 -
Danke!!!! -
Rate mal wieso du nichts gefunden hast
So eine Funktion gibt es *noch* nicht
mfg.
das ist sehr schade -
Da ist das gleiche
ich weiß, weil ich den code aus sa-mp.com habe
funktioniert aber einbandfrei -
Hallo,
ich habe ein Fitnes System erstellt und ich will jetzt, dass man mit einem hohem Fitnes-Wert schneller laufen kann...
Mir fehlt hierzu nurnoch ein Code.
Meine Frage ist jetzt: Gibt es einen, mit dem ich die Laufgeschwindigkeit hochsetzen kann?
ps. die SuFu hat mir nichts genutztVielen Dank im Vorraus
-
Bi mir funktioniert es so:
ocmd:hs(playerid,params[])
{
new pID;
if(IsACop(playerid))
{
if(sscanf(params, "u", pID))
{
SendClientMessage(playerid,COLOR_RED, "Benutzung: /hs [ID]");
return 1;
}
if (ProxDetectorS(8.0, playerid, pID))
{
new str[128], Officer[MAX_PLAYER_NAME], Spieler11[MAX_PLAYER_NAME];
GetPlayerName(playerid, Officer, sizeof(Officer));
GetPlayerName(pID, Spieler11, sizeof(Spieler11));
format(str, sizeof(str), "Officer %s hat %s Handschellen angelegt", Officer, Spieler11);
SendClientMessageToAll(COLOR_LIGHTBLUE, str);
SetPlayerSpecialAction(pID,24);
SetPlayerAttachedObject(pID, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
}
else { SendClientMessage(playerid, COLOR_RED, "Dieser Spieler ist nicht in deiner Nähe."); }
}
return 1;
}
ocmd:hsab(playerid,params[])
{
new pID;
if(IsACop(playerid))
{
if(sscanf(params, "u", pID))
{
SendClientMessage(playerid,COLOR_RED, "Benutzung: /hsab [ID]");
return 1;
}
if (ProxDetectorS(8.0, playerid, pID))
{
new str[128], Officer[MAX_PLAYER_NAME], Spieler11[MAX_PLAYER_NAME];
GetPlayerName(playerid, Officer, sizeof(Officer));
GetPlayerName(pID, Spieler11, sizeof(Spieler11));
format(str, sizeof(str), "Officer %s hat %s's Handschellen abgelegt", Officer, Spieler11);
SendClientMessageToAll(COLOR_LIGHTBLUE, str);
RemovePlayerAttachedObject(pID,0);
SetPlayerSpecialAction(pID, 0);
}
else { SendClientMessage(playerid, COLOR_RED, "Dieser Spieler ist nicht in deiner Nähe."); }
}
return 1;
} -
Heyho
mein /stats befehl klemmt iwie also steht ingame unknown command aber hab keine warnings / errors
if (strcmp(cmd, "/stats", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (gPlayerLogged[playerid] != 0)
{
Stats(playerid,playerid);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Du bist nicht eingeloggt !");
}
}
return 1;
}Function Stats(playerid,targetid)
{
if(IsPlayerConnected(targetid))
{
new cash = GetPlayerMoney(targetid);
new atext[20];
if(PlayerInfo[targetid][pSex] == 1) { atext = "Männlich"; }
else if(PlayerInfo[targetid][pSex] == 2) { atext = "Weiblich"; }
new otext[20];
if(PlayerInfo[targetid][pOrigin] == 1) { otext = "Deutschland"; }
else if(PlayerInfo[targetid][pOrigin] == 2) { otext = "Osterreich"; }
else if(PlayerInfo[targetid][pOrigin] == 3) { otext = "Schweiz"; }
new ttext[20];
new leader = PlayerInfo[targetid][pLeader];
new member = PlayerInfo[targetid][pMember];
if(gTeam[targetid] == 3 || gTeam[targetid] == 4) { ttext = "Zivilist"; }
else
{
if(leader != 0) ttext = Fracs[leader-1];
if(member != 0) ttext = Fracs[member-1];
}
new dtext[20];
if(STDPlayer[targetid] == 1) { dtext = "Chlamydia"; }
else if(STDPlayer[targetid] == 2) { dtext = "Gonorrhea"; }
else if(STDPlayer[targetid] == 3) { dtext = "Syphilis"; }
else { dtext = "-"; }
new ftext[20];
if(PlayerInfo[targetid][pMember] == 4 || PlayerInfo[targetid][pLeader] == 4)
{ ftext = "Sanitärer"; }
else if(PlayerInfo[targetid][pMember] == 5 || PlayerInfo[targetid][pLeader] == 5)
{ ftext = "La Cosa Nostra"; }
else if(PlayerInfo[targetid][pMember] == 6 || PlayerInfo[targetid][pLeader] == 6)
{ ftext = "Yakuza"; }
else if(PlayerInfo[targetid][pMember] == 11 || PlayerInfo[targetid][pLeader] == 11)
{ ftext = "Fahrlehrer"; }
else
{ ftext = "-"; }
new f2text[20];
new rtext[64];
if(gTeam[targetid] == 5 || PlayerInfo[targetid][pFMember] < 255)//The 2 Organisations
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Solitario"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Adepto"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Soldato"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Consiguere"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Destro"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Don"; }
else { rtext = "Bambino"; }
}
else if(PlayerInfo[targetid][pMember] == 1 || PlayerInfo[targetid][pLeader] == 1)//PD Ranks
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Auszubildender Polizist"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Ausgebildeter Polizist"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Streifenpolizist-Zufuß"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Polizeistreife-Auto"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Pressesprecher der Polizei"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Einsatzleitung"; }
else { rtext = "Cadet"; }
}
else if(PlayerInfo[targetid][pMember] == 2 || PlayerInfo[targetid][pLeader] == 2)//FBI Ranks
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Auszubildender Polizist"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Ausgebildeter Polizist"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Streifenpolizist-Zufuß"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Polizeistreife-Auto"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Pressesprecher der Polizei"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Einsatzleitung"; }
else { rtext = "Cadet"; }
}
else if(PlayerInfo[targetid][pMember] == 19 || PlayerInfo[targetid][pLeader] == 19)//RS
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Anfänger"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Erfahrener"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Killer"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Elite"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Zweite Hand"; }
else if(PlayerInfo[targetid][pRank] == 6 || PlayerInfo[targetid][pRank] == 12) { rtext = "Red King"; }
else { rtext = "Neuling"; }
}
else if(PlayerInfo[targetid][pMember] == 21 || PlayerInfo[targetid][pLeader] == 21)//WHEELMEN
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Anfänger"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Member"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Spezial Member"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Ausbilder"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Co-Leader"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Leader"; }
else { rtext = "Anfänger"; }
}
else if(PlayerInfo[targetid][pMember] == 3 || PlayerInfo[targetid][pLeader] == 3)//NG Ranks
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Private"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Sergeant"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Major"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Captain"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Lieutenant"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "General"; }
else { rtext = "Private"; }
}
else if(PlayerInfo[targetid][pMember] == 7 || PlayerInfo[targetid][pLeader] == 7)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Personenschutz-Azubi"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Personenschutz"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Personenschutz-Leiter"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Geheimdienst-Azubi"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Geheimdienst"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Geheimdienst Leiter"; }
else if(PlayerInfo[targetid][pRank] >= 7 && PlayerInfo[targetid][pRank] < 12) { rtext = "Minister"; }
else if(PlayerInfo[targetid][pRank] == 12) { rtext = "Bundespräsident"; }
else { rtext = "Private"; }
}
else if(PlayerInfo[targetid][pMember] == 8 || PlayerInfo[targetid][pLeader] == 8)//Hitman Ranks
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Azubi"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Sniper"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Killer"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Ausbilder"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Right Hand"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Big Boss"; }
else { rtext = "Praktikant"; }
}
else if(PlayerInfo[targetid][pMember] == 21 || PlayerInfo[targetid][pLeader] == 21)
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Neuling"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Söldner"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Attentäter"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Massenmörder"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Vize-Direktor"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Direktor"; }
else { rtext = "Praktikant"; }
}
else if(PlayerInfo[targetid][pMember] == 9 || PlayerInfo[targetid][pLeader] == 9)//NR Ranks
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Intern"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Local Reporter"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Local Editor"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Network Anchor"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Network Editor"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Network Producer"; }
else { rtext = "Intern"; }
}
else if(PlayerInfo[targetid][pMember] == 10 || PlayerInfo[targetid][pLeader] == 10)//Taxi Company Ranks
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Trainee"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Taxi Rookie"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Cabbie"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Dispatcher"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Shift Supervisor"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Taxi Company Owner"; }
else { rtext = "Trainee"; }
}
else if(IsAnInstructor(targetid))//Driving/Flying School Ranks
{
if(PlayerInfo[targetid][pRank] == 1) { rtext = "Trainee"; }
else if(PlayerInfo[targetid][pRank] == 2) { rtext = "Instructor"; }
else if(PlayerInfo[targetid][pRank] == 3) { rtext = "Senior Instructor"; }
else if(PlayerInfo[targetid][pRank] == 4) { rtext = "Manager"; }
else if(PlayerInfo[targetid][pRank] == 5) { rtext = "Under Boss"; }
else if(PlayerInfo[targetid][pRank] == 6) { rtext = "Boss"; }
else { rtext = "Trainee"; }
}
else
{
rtext = "-";
}
new jtext[20];
if(PlayerInfo[targetid][pJob] == 1) { jtext = "Detektiv"; }
else if(PlayerInfo[targetid][pJob] == 2) { jtext = "Anwalt"; }
else if(PlayerInfo[targetid][pJob] == 3) { jtext = "Hure"; }
else if(PlayerInfo[targetid][pJob] == 4) { jtext = "Drogendealer"; }
else if(PlayerInfo[targetid][pJob] == 5) { jtext = "Autodieb"; }
else if(PlayerInfo[targetid][pJob] == 6) { jtext = "Farmer"; }
else if(PlayerInfo[targetid][pJob] == 7) { jtext = "Mechaniker"; }
else if(PlayerInfo[targetid][pJob] == 8) { jtext = "Bodyguard"; }
else if(PlayerInfo[targetid][pJob] == 9) { jtext = "Waffendealer"; }
else if(PlayerInfo[targetid][pJob] == 10) { jtext = "Autohändler"; }
else if(PlayerInfo[targetid][pJob] == 12) { jtext = "Boxer"; }
else if(PlayerInfo[targetid][pJob] == 14) { jtext = "Busfahrer"; }
else if(PlayerInfo[targetid][pJob] == 15) { jtext = "Zeitungsjunge"; }
else if(PlayerInfo[targetid][pJob] == 16) { jtext = "Pilot"; }
else if(PlayerInfo[targetid][pJob] == 17) { jtext = "Müllmann"; }
else if(PlayerInfo[targetid][pJob] == 18) { jtext = "Angler"; }
else if(PlayerInfo[targetid][pJob] == 19) { jtext = "Pizzalieferer"; }
else { jtext = "-"; }
new drank[20];
if(PlayerInfo[targetid][pDonateRank] == 1) { drank = "Premium User"; }
else if(PlayerInfo[targetid][pDonateRank] == 2) { drank = "Clanmitglied"; }
else if(PlayerInfo[targetid][pDonateRank] == 3) { drank = "Ehrenmitglied"; }
else if(PlayerInfo[targetid][pDonateRank] == 4) { drank = "EliteMember"; }
else { drank = "-"; }
new married[20];
strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);
new ptime = PlayerInfo[targetid][pConnectTime];
new deaths = PlayerInfo[targetid][pDeaths];
new crimes = PlayerInfo[targetid][pCrimes];
new arrests = PlayerInfo[targetid][pArrested];
new drugs = PlayerInfo[targetid][pDrugs];
new mats = PlayerInfo[targetid][pMats];
new wanted = WantedLevel[targetid];
new level = PlayerInfo[targetid][pLevel];
new kills = PlayerInfo[targetid][pKills];
new pnumber = PlayerInfo[targetid][pPnumber];
new account = PlayerInfo[targetid][pAccount];
new nxtlevel = PlayerInfo[targetid][pLevel]+1;
new expamount = nxtlevel*levelexp;
new Float:health;
new name[MAX_PLAYER_NAME];
GetPlayerName(targetid, name, sizeof(name));
GetPlayerHealth(targetid,health);
new Float:px,Float:py,Float:pz;
new Float:plHealth, Float:plArmour;
GetPlayerPos(targetid, px, py, pz);
new plIP[20];
GetPlayerHealth(targetid,plHealth);
GetPlayerArmour(targetid,plArmour);
GetPlayerIp(playerid,plIP,sizeof(plIP));
new string1[200],string2[200],string3[200],string4[200],string5[200],string6[200],string7[200],string8[200],string9[200],string10[200],string11[200],string12[200],string13[200],string14[200],string15[200],string16[200],string17[200],string18[200],string19[200],string20[200],string21[200],string22[200],string23[200],string24[200],string25[200],string26[200],string27[200],string28[200],string29[200],rest[1500];
format(string1, sizeof string1, "{0000FF}[Stats von %s]{FFFFFF}", name);
format(string2, sizeof string2, "Personalien: Geschlecht: %s",atext);
format(string3, sizeof string3, " Partner: %s",married);
format(string4, sizeof string4, " ");
format(string5, sizeof string5, " Level: %d",level);
format(string6, sizeof string6, " Respekt: %d / %d",expamount);
format(string7, sizeof string7, " Payday %d/60 Minuten",PlayerInfo[targetid][pPlayMinutes]);
format(string8, sizeof string8, " ");
format(string9, sizeof string9, "Berufe: Team: %s",ttext);
format(string10, sizeof string10, " Organisation: %s",ftext);
format(string11, sizeof string11, " Familie: %s",f2text);
format(string12, sizeof string12, " Rang: %s",rtext);
format(string13, sizeof string13, " Nebenjob: %s",jtext);
format(string14, sizeof string14, " ");
format(string15, sizeof string15, "Finanzen: Bargeld: %d$",cash);
format(string16, sizeof string16, " Konto: %d$",account);
format(string17, sizeof string17, " ");
format(string18, sizeof string18, "Statistik: Morde: %d",kills);
format(string19, sizeof string19, " Gestorben: %d",deaths);
format(string20, sizeof string20, " Verbrechen: %d",crimes);
format(string21, sizeof string21, " Spielzeit: %d",ptime);
format(string22, sizeof string22, " Knastzeiten: %d",arrests);
format(string23, sizeof string23, " Wanteds: %d",wanted);
format(string24, sizeof string24, " Verwarnungen: %d/3",PlayerInfo[targetid][pWarns]);
format(string25, sizeof string25, " ");
format(string26, sizeof string26, "Inventar: Materialien: %d",mats);
format(string27, sizeof string27, " Drogen: %d",drugs);
format(string28, sizeof string28, " Handy Nr.%d",pnumber);
format(string29, sizeof string29, " ");
format(rest, sizeof rest, "%s\n%s\n%s\n\n%s\n%s\n%s\n\n%s\n%s\n%s\n%s\n%s\n\n%s\n%s\n\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n\n%s\n%s\n%s\n\n", string1,string2,string3,string4,string5,string6,string7,string8,string9,string10,string11,string12,string13,string14,string15,string16,string17,string18,string19,string20,string21,string22,string23,string24,string25,string26,string27,string28,string29);
ShowPlayerDialog(playerid,30,DIALOG_STYLE_MSGBOX,"Statstik",rest,"Beenden","");
}
}Hab das gleiche Problem, funktioniert es bei dir generell nicht oder nur bei manchen/vielen usern?
Ich würde mir mal zum Testen einen neuen Acc erstellen und bevor du daran rumbastelst, teste am besten mal /stats -
Gelöst: Einmal mit "ToStream" einmal ohne
Hallo,
ich habe eben zwei Tore erstellt.
Das hier ist mein Script:
//Ganz oben drinnen:
new WheelTor;
new WheelTor2;OnGameModeInit:
WheelTor = CreateObject(971, -485.10, -562.71, 28.02, 0.00, 0.00, 0.00);
WheelTor2 = CreateObject(971, -493.84, -562.66, 28.02, 0.00, 0.00, 0.00);//OnPlayerCommandText
if(strcmp(cmdtext,"/tor", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pLeader]==20 || PlayerInfo[playerid][pMember]==20 ||PlayerInfo[playerid][pLeader]==1 || PlayerInfo[playerid][pMember]==1 || PlayerInfo[playerid][pLeader]==2 || PlayerInfo[playerid][pMember]==2 || PlayerInfo[playerid][pLeader]==3 || PlayerInfo[playerid][pMember]==3 || PlayerInfo[playerid][pLeader]==16 || PlayerInfo[playerid][pMember]==16 || PlayerInfo[playerid][pLeader]==7 || PlayerInfo[playerid][pMember]==7)
{
if(IsPlayerInRangeOfPoint(playerid, 15.0, -485.10, -562.71, 28.02))
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Das Tor schließt in 5 Sekunden wieder.");
MoveObjectToStream(WheelTor, -485.10, -562.71, 14.02,2);
SetTimer("WheelTorClose",5000, 0);
SetTimer("WheelTorClose2",5000, 0);
MoveObjectToStream(WheelTor2, -493.84, -562.66, 14.02, 2);
return 1;
}
}
}
}//Ganz unten (ja 2x das gleiche weil sonst manchmal ein Tor hängen bleibt):
forward WheelTorClose();
public WheelTorClose()
{
MoveObjectToStream(WheelTor, -485.10, -562.71, 28.02, 2);
MoveObjectToStream(WheelTor2, -493.84, -562.66, 28.02, 2);
return 1;
}forward WheelTorClose2();
public WheelTorClose2()
{
MoveObjectToStream(WheelTor, -485.10, -562.71, 28.02, 2);
MoveObjectToStream(WheelTor2, -493.84, -562.66, 28.02, 2);
return 1;
}Eigentlich mache ich solche Fehler nicht, aber da ist mir wohl ein kleiner passiert.
Hat jemand eine Idee?
Ps. Im Chat erscheint bei dem Befehl /tor das hier im Chat:
Also ist es schonmal kein Befehlsfail