Beiträge von reaL.
-
-
-
Habe kein eingestellt Lso alles Standart
-
Hey ich habe eine Map mit ca 850 Objekten.
Die objecte werden alle mit CreateDynamicObject erstellt.
Nun folgendes Problem wenn ich genau in der Mitte stehe werden nicht alle Obejcte angezeigt wenn ich in der einen Ecke bin werden die aus der anderen Ecke ausgestreamt.
Aber wieso?Falls es ein falscher bereich bitte verschieben wusste nicht kn welchen Bereich
-
Frag einfach die Interior ab wenn sie nicht 0 ist dann betritt er ein Interior wenn es 0 ist verlässt er ein Interior
-
Warum wird nur von lID 1 geladen und nicht bis zum Ende durch ?
Codeformat(string,sizeof(string),"SELECT * FROM jobgehalt"); mysql_function_query(sqlHandle,string,true, "Loadgehalter", "");
Code
Alles anzeigenforward Loadgehalter(); public Loadgehalter() { new rows = cache_get_row_count(), lID,lResult[256]; if(rows > 0) { cache_get_field_content(0, "ID", lResult), lID = strval(lResult); if(lID == 1) { cache_get_field_content(0, "Rang1", lResult), MUELLMANNGEHATL_1 = floatstr(lResult); printf("%f",MUELLMANNGEHATL_1); cache_get_field_content(0, "Rang2", lResult), MUELLMANNGEHATL_2 = floatstr(lResult); cache_get_field_content(0, "Rang3", lResult), MUELLMANNGEHATL_3 = floatstr(lResult); cache_get_field_content(0, "Rang4", lResult), MUELLMANNGEHATL_4 = floatstr(lResult); cache_get_field_content(0, "Rang5", lResult), MUELLMANNGEHATL_5 = floatstr(lResult); } if(lID == 2) { cache_get_field_content(0, "Rang1", lResult), STADTREINIGERGEHALT_1 = floatstr(lResult); cache_get_field_content(0, "Rang2", lResult), STADTREINIGERGEHALT_2 = floatstr(lResult); cache_get_field_content(0, "Rang3", lResult), STADTREINIGERGEHALT_3 = floatstr(lResult); cache_get_field_content(0, "Rang4", lResult), STADTREINIGERGEHALT_4 = floatstr(lResult); cache_get_field_content(0, "Rang5", lResult), STADTREINIGERGEHALT_5 = floatstr(lResult); } if(lID == 3) { cache_get_field_content(0, "Rang1", lResult), FARMERGEHALT_1 = floatstr(lResult); cache_get_field_content(0, "Rang2", lResult), FARMERGEHALT_2 = floatstr(lResult); cache_get_field_content(0, "Rang3", lResult), FARMERGEHALT_3 = floatstr(lResult); cache_get_field_content(0, "Rang4", lResult), FARMERGEHALT_4 = floatstr(lResult); cache_get_field_content(0, "Rang5", lResult), FARMERGEHALT_5 = floatstr(lResult); } if(lID == 4) { cache_get_field_content(0, "Rang1", lResult), ERZPREIS_1 = floatstr(lResult); printf("%f",ERZPREIS_1); cache_get_field_content(0, "Rang2", lResult), ERZPREIS_2 = floatstr(lResult); cache_get_field_content(0, "Rang3", lResult), ERZPREIS_3 = floatstr(lResult); cache_get_field_content(0, "Rang4", lResult), ERZPREIS_4 = floatstr(lResult); cache_get_field_content(0, "Rang5", lResult), ERZPREIS_5 = floatstr(lResult); } if(lID == 5) { cache_get_field_content(0, "Rang1", lResult), HUNTINGPREIS_1 = floatstr(lResult); cache_get_field_content(0, "Rang2", lResult), HUNTINGPREIS_2 = floatstr(lResult); cache_get_field_content(0, "Rang3", lResult), HUNTINGPREIS_3 = floatstr(lResult); cache_get_field_content(0, "Rang4", lResult), HUNTINGPREIS_4 = floatstr(lResult); cache_get_field_content(0, "Rang5", lResult), HUNTINGPREIS_5 = floatstr(lResult); } if(lID == 6) { cache_get_field_content(0, "Rang1", lResult), ERZTRUCK = strval(lResult); } } return 1; }
-
darf ich nicht sagen ist geheim ;P
Nein als ob ich sowas nötig habe -
@toor:
War wohl nicht soeine gute idee sowas zu erstellen wenn man sich die 3 mal anschaut.
Mach das lieber hier im Forum.Freue mich echt schon drauf das Wird die Scene wieder richtig ins Rollen bringen.
-
Es wird nur 6x 500000 geprintet und die habe ich bei lID 1 bei Rang 1 drinne
Warum wird nur von lID 1 geladen und nicht bis zum Ende durch ?
Codeformat(string,sizeof(string),"SELECT * FROM jobgehalt"); mysql_function_query(sqlHandle,string,true, "Loadgehalter", "");
Code
Alles anzeigenforward Loadgehalter(); public Loadgehalter() { new rows = cache_get_row_count(), lID,lResult[256]; if(rows > 0) { cache_get_field_content(0, "ID", lResult), lID = strval(lResult); if(lID == 1) { cache_get_field_content(0, "Rang1", lResult), MUELLMANNGEHATL_1 = floatstr(lResult); printf("%f",MUELLMANNGEHATL_1); cache_get_field_content(0, "Rang2", lResult), MUELLMANNGEHATL_2 = floatstr(lResult); cache_get_field_content(0, "Rang3", lResult), MUELLMANNGEHATL_3 = floatstr(lResult); cache_get_field_content(0, "Rang4", lResult), MUELLMANNGEHATL_4 = floatstr(lResult); cache_get_field_content(0, "Rang5", lResult), MUELLMANNGEHATL_5 = floatstr(lResult); } if(lID == 2) { cache_get_field_content(0, "Rang1", lResult), STADTREINIGERGEHALT_1 = floatstr(lResult); cache_get_field_content(0, "Rang2", lResult), STADTREINIGERGEHALT_2 = floatstr(lResult); cache_get_field_content(0, "Rang3", lResult), STADTREINIGERGEHALT_3 = floatstr(lResult); cache_get_field_content(0, "Rang4", lResult), STADTREINIGERGEHALT_4 = floatstr(lResult); cache_get_field_content(0, "Rang5", lResult), STADTREINIGERGEHALT_5 = floatstr(lResult); } if(lID == 3) { cache_get_field_content(0, "Rang1", lResult), FARMERGEHALT_1 = floatstr(lResult); cache_get_field_content(0, "Rang2", lResult), FARMERGEHALT_2 = floatstr(lResult); cache_get_field_content(0, "Rang3", lResult), FARMERGEHALT_3 = floatstr(lResult); cache_get_field_content(0, "Rang4", lResult), FARMERGEHALT_4 = floatstr(lResult); cache_get_field_content(0, "Rang5", lResult), FARMERGEHALT_5 = floatstr(lResult); } if(lID == 4) { cache_get_field_content(0, "Rang1", lResult), ERZPREIS_1 = floatstr(lResult); printf("%f",ERZPREIS_1); cache_get_field_content(0, "Rang2", lResult), ERZPREIS_2 = floatstr(lResult); cache_get_field_content(0, "Rang3", lResult), ERZPREIS_3 = floatstr(lResult); cache_get_field_content(0, "Rang4", lResult), ERZPREIS_4 = floatstr(lResult); cache_get_field_content(0, "Rang5", lResult), ERZPREIS_5 = floatstr(lResult); } if(lID == 5) { cache_get_field_content(0, "Rang1", lResult), HUNTINGPREIS_1 = floatstr(lResult); cache_get_field_content(0, "Rang2", lResult), HUNTINGPREIS_2 = floatstr(lResult); cache_get_field_content(0, "Rang3", lResult), HUNTINGPREIS_3 = floatstr(lResult); cache_get_field_content(0, "Rang4", lResult), HUNTINGPREIS_4 = floatstr(lResult); cache_get_field_content(0, "Rang5", lResult), HUNTINGPREIS_5 = floatstr(lResult); } if(lID == 6) { cache_get_field_content(0, "Rang1", lResult), ERZTRUCK = strval(lResult); } } return 1; }
-
push
Es wird nur 6x 500000 geprintet und die habe ich bei lID 1 bei Rang 1 drinneWarum wird nur von lID 1 geladen und nicht bis zum Ende durch ?
Codeformat(string,sizeof(string),"SELECT * FROM jobgehalt"); mysql_function_query(sqlHandle,string,true, "Loadgehalter", "");
Code
Alles anzeigenforward Loadgehalter(); public Loadgehalter() { new rows = cache_get_row_count(), lID,lResult[256]; if(rows > 0) { cache_get_field_content(0, "ID", lResult), lID = strval(lResult); if(lID == 1) { cache_get_field_content(0, "Rang1", lResult), MUELLMANNGEHATL_1 = floatstr(lResult); printf("%f",MUELLMANNGEHATL_1); cache_get_field_content(0, "Rang2", lResult), MUELLMANNGEHATL_2 = floatstr(lResult); cache_get_field_content(0, "Rang3", lResult), MUELLMANNGEHATL_3 = floatstr(lResult); cache_get_field_content(0, "Rang4", lResult), MUELLMANNGEHATL_4 = floatstr(lResult); cache_get_field_content(0, "Rang5", lResult), MUELLMANNGEHATL_5 = floatstr(lResult); } if(lID == 2) { cache_get_field_content(0, "Rang1", lResult), STADTREINIGERGEHALT_1 = floatstr(lResult); cache_get_field_content(0, "Rang2", lResult), STADTREINIGERGEHALT_2 = floatstr(lResult); cache_get_field_content(0, "Rang3", lResult), STADTREINIGERGEHALT_3 = floatstr(lResult); cache_get_field_content(0, "Rang4", lResult), STADTREINIGERGEHALT_4 = floatstr(lResult); cache_get_field_content(0, "Rang5", lResult), STADTREINIGERGEHALT_5 = floatstr(lResult); } if(lID == 3) { cache_get_field_content(0, "Rang1", lResult), FARMERGEHALT_1 = floatstr(lResult); cache_get_field_content(0, "Rang2", lResult), FARMERGEHALT_2 = floatstr(lResult); cache_get_field_content(0, "Rang3", lResult), FARMERGEHALT_3 = floatstr(lResult); cache_get_field_content(0, "Rang4", lResult), FARMERGEHALT_4 = floatstr(lResult); cache_get_field_content(0, "Rang5", lResult), FARMERGEHALT_5 = floatstr(lResult); } if(lID == 4) { cache_get_field_content(0, "Rang1", lResult), ERZPREIS_1 = floatstr(lResult); printf("%f",ERZPREIS_1); cache_get_field_content(0, "Rang2", lResult), ERZPREIS_2 = floatstr(lResult); cache_get_field_content(0, "Rang3", lResult), ERZPREIS_3 = floatstr(lResult); cache_get_field_content(0, "Rang4", lResult), ERZPREIS_4 = floatstr(lResult); cache_get_field_content(0, "Rang5", lResult), ERZPREIS_5 = floatstr(lResult); } if(lID == 5) { cache_get_field_content(0, "Rang1", lResult), HUNTINGPREIS_1 = floatstr(lResult); cache_get_field_content(0, "Rang2", lResult), HUNTINGPREIS_2 = floatstr(lResult); cache_get_field_content(0, "Rang3", lResult), HUNTINGPREIS_3 = floatstr(lResult); cache_get_field_content(0, "Rang4", lResult), HUNTINGPREIS_4 = floatstr(lResult); cache_get_field_content(0, "Rang5", lResult), HUNTINGPREIS_5 = floatstr(lResult); } if(lID == 6) { cache_get_field_content(0, "Rang1", lResult), ERZTRUCK = strval(lResult); } } return 1; }
-
Warum wird nur von lID 1 geladen und nicht bis zum Ende durch ?
Codeformat(string,sizeof(string),"SELECT * FROM jobgehalt"); mysql_function_query(sqlHandle,string,true, "Loadgehalter", "");
Code
Alles anzeigenforward Loadgehalter(); public Loadgehalter() { new rows = cache_get_row_count(), lID,lResult[256]; if(rows > 0) { cache_get_field_content(0, "ID", lResult), lID = strval(lResult); if(lID == 1) { cache_get_field_content(0, "Rang1", lResult), MUELLMANNGEHATL_1 = floatstr(lResult); printf("%f",MUELLMANNGEHATL_1); cache_get_field_content(0, "Rang2", lResult), MUELLMANNGEHATL_2 = floatstr(lResult); cache_get_field_content(0, "Rang3", lResult), MUELLMANNGEHATL_3 = floatstr(lResult); cache_get_field_content(0, "Rang4", lResult), MUELLMANNGEHATL_4 = floatstr(lResult); cache_get_field_content(0, "Rang5", lResult), MUELLMANNGEHATL_5 = floatstr(lResult); } if(lID == 2) { cache_get_field_content(0, "Rang1", lResult), STADTREINIGERGEHALT_1 = floatstr(lResult); cache_get_field_content(0, "Rang2", lResult), STADTREINIGERGEHALT_2 = floatstr(lResult); cache_get_field_content(0, "Rang3", lResult), STADTREINIGERGEHALT_3 = floatstr(lResult); cache_get_field_content(0, "Rang4", lResult), STADTREINIGERGEHALT_4 = floatstr(lResult); cache_get_field_content(0, "Rang5", lResult), STADTREINIGERGEHALT_5 = floatstr(lResult); } if(lID == 3) { cache_get_field_content(0, "Rang1", lResult), FARMERGEHALT_1 = floatstr(lResult); cache_get_field_content(0, "Rang2", lResult), FARMERGEHALT_2 = floatstr(lResult); cache_get_field_content(0, "Rang3", lResult), FARMERGEHALT_3 = floatstr(lResult); cache_get_field_content(0, "Rang4", lResult), FARMERGEHALT_4 = floatstr(lResult); cache_get_field_content(0, "Rang5", lResult), FARMERGEHALT_5 = floatstr(lResult); } if(lID == 4) { cache_get_field_content(0, "Rang1", lResult), ERZPREIS_1 = floatstr(lResult); printf("%f",ERZPREIS_1); cache_get_field_content(0, "Rang2", lResult), ERZPREIS_2 = floatstr(lResult); cache_get_field_content(0, "Rang3", lResult), ERZPREIS_3 = floatstr(lResult); cache_get_field_content(0, "Rang4", lResult), ERZPREIS_4 = floatstr(lResult); cache_get_field_content(0, "Rang5", lResult), ERZPREIS_5 = floatstr(lResult); } if(lID == 5) { cache_get_field_content(0, "Rang1", lResult), HUNTINGPREIS_1 = floatstr(lResult); cache_get_field_content(0, "Rang2", lResult), HUNTINGPREIS_2 = floatstr(lResult); cache_get_field_content(0, "Rang3", lResult), HUNTINGPREIS_3 = floatstr(lResult); cache_get_field_content(0, "Rang4", lResult), HUNTINGPREIS_4 = floatstr(lResult); cache_get_field_content(0, "Rang5", lResult), HUNTINGPREIS_5 = floatstr(lResult); } if(lID == 6) { cache_get_field_content(0, "Rang1", lResult), ERZTRUCK = strval(lResult); } } return 1; }
-
Ne genau Andersrum
DestroyVehicle würde ja das Fahrzeug löschen aber es Brennt ja und wird nicht gelöscht.
-
Mein Script
Wenn ich mich einlogge am Neulingsspawn Brennen die Roller schon und wenn ich ein Car mit /veh erstelle brennen die auch direkt.
Nur wenn ich das Script auf mein Rechner Starte. Ich habe es ja auch auf mein Server aner da funktioniert es. -
Hey ich musste gerade feststellen dass meine Autos mit 0 Hp spawnen aber auf mein server habe ich das Gleiche Script hochgeladen und es geht 1 a
-
Gucke dir das Tutorial von MrMonat nochmal an achte besonders darauf wenn er auf die db-id eingeht dass ist deine Datenbank Id die du fürs Speichern Brauchst.
Wenn mann sich schon ein Tutorial anschaut muss man auch alles mitmachen/nachmachen und nichtnur die Hälfte. -
Nutzt du die Classsektion überhaupt ?
Setze mal am Anfang noch ein Print ein. -
Einfach eine schleife mit der Schleifen Größe ( soviele Zeilen wie der Chat hat ) Und in der Schleife eine Nachricht Senden Fertig.
Bin denke mal Gleich am Pc dann mache ich das. -
Kriege ich dann auch wirklich nur aus meiner Route eine oder kann es durch zufall auch eine Andere aus route 2 oder so werden
-
Hey ich lasse mir eine Random Route geben und wollte danach ein Random Checkpoint aus dieser Route setzen aber es geht nicht aber wieso ?
Code
Alles anzeigenC:\Users\Tobias\Desktop\Reallife\gamemodes\Jobs.pwn(888) : error 001: expected token: "]", but found "-identifier-" C:\Users\Tobias\Desktop\Reallife\gamemodes\Jobs.pwn(888) : warning 215: expression has no effect C:\Users\Tobias\Desktop\Reallife\gamemodes\Jobs.pwn(888) : error 001: expected token: ";", but found "]" C:\Users\Tobias\Desktop\Reallife\gamemodes\Jobs.pwn(888) : error 029: invalid expression, assumed zero C:\Users\Tobias\Desktop\Reallife\gamemodes\Jobs.pwn(888) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors.
Codenew route = random(sizeof(Muelltonnen)); //Hier ist der Fehler new id = random(sizeof(Muelltonnen[route]));
Code
Alles anzeigenenum MuelltonennEnum{ Float:mt_x, Float:mt_y, Float:mt_z, Float:mt_rx, Float:mt_ry, Float:mt_rz, MuelltonnenID, bool:mt_used } new Muelltonnen[][][MuelltonennEnum] = { { //route 1 {1952.5,1367.9,8.97781,0.0,0.0,0.0}, {1952.27,1363.95,8.82938,0.0,0.0,0.0}, {1952.38,1359.91,8.82938,0.0,0.0,0.0} }, { //route 2 {1957.02,1396.91,8.82938,0.0,0.0,0.0}, {1964.58,1396.99,8.82938,0.0,0.0,0.0}, {1972.51,1396.05,8.82938,0.0,0.0,0.0} } };
-
Setze mal ein Print in die CreatePlayerCar Funktion