Beiträge von Darklight

    Was du da tust ist ziemlich aufwendig. Wahrscheinlich packt das der Server nicht.
    Welchen Streamer verwendest du denn ? Versuch mal den Code von mir.

    Spoiler anzeigen

    if(strcmp(cmd, "/evakuiren", true) == 0)
    {
    if(PlayerInfo[playerid][pAdmin] >= 4)
    {
    CreateObject(8613,2446.50000000,-2688.80004883,17.00000000,0.00000000,0.00000000,0.00000000); //object(vgssstairs03_lvs) (1)
    CreateObject(8613,2507.60009766,-2672.30004883,17.00000000,0.00000000,0.00000000,180.00000000); //object(vgssstairs03_lvs) (2)
    CreateObject(737,-2766.89990234,358.60000610,3.50000000,0.00000000,0.00000000,0.00000000); //object(aw_streettree3) (1)
    CreateObject(737,-2765.80004883,394.39999390,3.40000010,0.00000000,0.00000000,0.00000000); //object(aw_streettree3) (2)
    CreateObject(737,-2652.60009766,387.79998779,3.29999995,0.00000000,0.00000000,0.00000000); //object(aw_streettree3) (3)
    CreateObject(737,-2651.50000000,363.29998779,3.40000010,0.00000000,0.00000000,0.00000000); //object(aw_streettree3) (4)
    CreateObject(737,-2434.19995117,512.29998779,29.39999962,0.00000000,0.00000000,0.00000000); //object(aw_streettree3) (5)
    CreateObject(737,-2420.69995117,538.79998779,29.39999962,0.00000000,0.00000000,0.00000000); //object(aw_streettree3) (6)
    CreateObject(2921,-2410.10009766,478.79998779,34.20000076,0.00000000,0.00000000,0.00000000); //object(kmb_cam) (1)
    CreateObject(2921,-2447.50000000,529.59997559,37.50000000,0.00000000,0.00000000,148.00000000); //object(kmb_cam) (2)
    CreateObject(10389,824.79998779,-3952.60009766,1.29999995,0.00000000,0.00000000,0.00000000); //object(mission_07_sfs) (1)
    CreateObject(10389,863.79998779,-3952.69995117,1.29999995,0.00000000,0.00000000,180.00000000); //object(mission_07_sfs) (2)
    CreateObject(10389,814.90002441,-4001.69995117,1.29999995,0.00000000,0.00000000,89.99450684); //object(mission_07_sfs) (3)
    CreateObject(10389,883.40002441,-3893.69995117,1.29999995,0.00000000,0.00000000,359.99450684); //object(mission_07_sfs) (4)
    CreateObject(10389,833.50000000,-3903.30004883,1.29999995,0.00000000,0.00000000,269.98901367); //object(mission_07_sfs) (5)
    CreateObject(10389,874.40002441,-4021.10009766,1.29999995,0.00000000,0.00000000,269.98901367); //object(mission_07_sfs) (6)
    CreateObject(13592,872.29998779,-3905.80004883,10.00000000,0.00000000,0.00000000,96.00000000); //object(loopbig) (1)
    CreateObject(13592,824.50000000,-3934.00000000,10.00000000,0.00000000,0.00000000,95.99853516); //object(loopbig) (2)
    CreateObject(13603,778.90002441,-3908.00000000,0.00000000,0.00000000,0.00000000,0.00000000); //object(stad_tag) (1)
    CreateObject(13608,823.00000000,-3748.10009766,17.20000076,0.00000000,0.00000000,0.00000000); //object(sumoring) (1)
    CreateObject(979,2321.60009766,-2114.19995117,13.30000019,0.00000000,0.00000000,46.00000000); //object(sub_roadleft) (1)
    CreateObject(979,2316.10009766,-2119.80004883,13.30000019,0.00000000,0.00000000,45.99975586); //object(sub_roadleft) (2)
    CreateObject(979,2334.19995117,-2357.30004883,13.39999962,0.00000000,0.00000000,45.99975586); //object(sub_roadleft) (3)
    CreateObject(979,2341.00000000,-2350.50000000,13.19999981,0.00000000,0.00000000,45.99975586); //object(sub_roadleft) (4)
    CreateObject(979,2267.60009766,-2659.60009766,13.30000019,0.00000000,0.00000000,91.99975586); //object(sub_roadleft) (5)
    CreateObject(979,2267.89990234,-2667.69995117,13.19999981,0.00000000,0.00000000,91.99951172); //object(sub_roadleft) (6)
    CreateObject(979,-2909.50000000,-1174.90002441,9.30000019,0.00000000,0.00000000,167.99743652); //object(sub_roadleft) (9)
    CreateObject(979,-2919.10009766,-1173.00000000,9.30000019,0.00000000,0.00000000,167.99743652); //object(sub_roadleft) (10)
    CreateObject(979,-1738.30004883,-1664.69995117,36.09999847,0.00000000,0.00000000,291.99743652); //object(sub_roadleft) (11)
    CreateObject(979,-1736.50000000,-1669.50000000,36.09999847,0.00000000,0.00000000,291.99462891); //object(sub_roadleft) (12)
    CreateObject(979,-1236.69995117,-2337.39990234,18.00000000,0.00000000,0.00000000,55.99462891); //object(sub_roadleft) (13)
    CreateObject(979,-1151.00000000,-2636.80004883,10.30000019,0.00000000,0.00000000,89.99182129); //object(sub_roadleft) (15)
    CreateObject(979,-1231.30004883,-2329.60009766,17.70000076,0.00000000,0.00000000,53.99084473); //object(sub_roadleft) (16)
    CreateObject(979,-1229.50000000,-2326.80004883,17.60000038,0.00000000,0.00000000,53.98937988); //object(sub_roadleft) (17)
    CreateObject(979,-1151.29980469,-2641.09960938,11.10000038,0.00000000,0.00000000,89.98901367); //object(sub_roadleft) (18)
    CreateObject(979,-1187.09997559,-2852.60009766,67.59999847,0.00000000,0.00000000,93.98901367); //object(sub_roadleft) (19)
    CreateObject(979,-1186.59997559,-2861.00000000,67.59999847,0.00000000,0.00000000,93.98803711); //object(sub_roadleft) (20)
    CreateObject(979,-1186.09997559,-2868.50000000,67.59999847,0.00000000,0.00000000,93.98803711); //object(sub_roadleft) (21)
    CreateObject(979,-2900.30004883,-1177.00000000,9.30000019,0.00000000,0.00000000,167.99743652); //object(sub_roadleft) (26)
    CreateObject(979,-1748.69995117,-712.50000000,29.20000076,0.00000000,0.00000000,213.99743652); //object(sub_roadleft) (27)
    CreateObject(979,-1753.59997559,-715.59997559,29.29999924,0.00000000,0.00000000,213.99719238); //object(sub_roadleft) (28)
    CreateObject(979,-1484.80004883,-1251.19995117,101.19999695,0.00000000,0.00000000,213.99719238); //object(sub_roadleft) (29)
    CreateObject(979,-1492.09997559,-1256.59997559,100.90000153,0.00000000,0.00000000,213.99719238); //object(sub_roadleft) (30)
    CreateObject(979,-1499.40002441,-1261.00000000,101.09999847,0.00000000,0.00000000,213.99719238); //object(sub_roadleft) (31)
    CreateObject(979,-1506.19995117,-1266.50000000,100.69999695,0.00000000,0.00000000,213.99719238); //object(sub_roadleft) (32)
    CreateObject(979,-1510.80004883,-1270.40002441,100.40000153,0.00000000,0.00000000,213.99719238); //object(sub_roadleft) (33)
    CreateObject(979,-1534.30004883,-1316.40002441,53.29999924,0.00000000,0.00000000,213.99719238); //object(sub_roadleft) (34)
    CreateObject(979,-1541.19995117,-1321.50000000,53.00000000,0.00000000,0.00000000,213.99719238); //object(sub_roadleft) (35)
    CreateObject(979,-1486.69995117,-1608.69995117,41.40000153,0.00000000,0.00000000,243.99719238); //object(sub_roadleft) (36)
    CreateObject(979,-1489.80004883,-1616.80004883,41.09999847,0.00000000,0.00000000,243.99536133); //object(sub_roadleft) (37)
    CreateObject(979,-1493.50000000,-1623.40002441,41.29999924,0.00000000,0.00000000,243.99536133); //object(sub_roadleft) (38)
    CreateObject(979,-2002.80004883,-1300.09997559,38.00000000,0.00000000,0.00000000,213.99536133); //object(sub_roadleft) (39)
    CreateObject(979,-1995.30004883,-1294.50000000,37.59999847,0.00000000,0.00000000,213.99169922); //object(sub_roadleft) (40)
    CreateObject(979,-1987.09997559,-1289.50000000,38.00000000,0.00000000,0.00000000,213.99169922); //object(sub_roadleft) (41)
    CreateObject(979,-1986.00000000,-1185.19995117,39.29999924,0.00000000,0.00000000,185.99169922); //object(sub_roadleft) (42)
    CreateObject(979,-1989.00000000,-1185.80004883,39.50000000,0.00000000,0.00000000,185.98754883); //object(sub_roadleft) (43)
    CreateObject(979,-1912.69995117,-1164.00000000,38.50000000,0.00000000,0.00000000,185.98754883); //object(sub_roadleft) (44)
    CreateObject(979,-1895.30004883,-1161.59997559,38.50000000,0.00000000,0.00000000,185.98754883); //object(sub_roadleft) (46)
    CreateObject(979,-1739.90002441,-569.90002441,16.29999924,0.00000000,0.00000000,271.98754883); //object(sub_roadleft) (47)
    CreateObject(979,-1903.59997559,-1162.69995117,38.50000000,0.00000000,0.00000000,185.98754883); //object(sub_roadleft) (48)
    CreateObject(979,-1876.69995117,-1152.00000000,29.79999924,0.00000000,0.00000000,271.98303223); //object(sub_roadleft) (49)
    CreateObject(979,-1876.40002441,-1160.19995117,29.79999924,0.00000000,0.00000000,271.98303223); //object(sub_roadleft) (50)
    CreateObject(979,-1739.80004883,-579.29998779,16.20000076,0.00000000,0.00000000,271.98303223); //object(sub_roadleft) (53)
    CreateObject(979,-1739.30004883,-588.79998779,16.20000076,0.00000000,0.00000000,271.98303223); //object(sub_roadleft) (54)
    CreateObject(979,-1637.19995117,485.50000000,22.70000076,0.00000000,0.00000000,307.98242188); //object(sub_roadleft) (57)
    CreateObject(979,-951.39941406,986.79980469,34.40000153,0.00000000,0.00000000,307.97973633); //object(sub_roadleft) (58)
    CreateObject(979,-1641.69995117,490.20001221,22.60000038,0.00000000,0.00000000,307.97973633); //object(sub_roadleft) (59)
    CreateObject(979,-1142.90002441,1115.80004883,38.00000000,0.00000000,0.00000000,319.97973633); //object(sub_roadleft) (60)
    CreateObject(979,-1135.40002441,1110.09997559,38.00000000,0.00000000,0.00000000,319.97680664); //object(sub_roadleft) (61)
    CreateObject(979,-1128.19995117,1103.69995117,38.00000000,0.00000000,0.00000000,319.97680664); //object(sub_roadleft) (62)
    CreateObject(979,-1121.30004883,1097.90002441,38.09999847,0.00000000,0.00000000,319.97680664); //object(sub_roadleft) (63)
    CreateObject(979,-2696.60009766,2142.89990234,55.70000076,0.00000000,0.00000000,359.97680664); //object(sub_roadleft) (64)
    CreateObject(979,-2687.39990234,2143.10009766,55.29999924,0.00000000,0.00000000,359.97253418); //object(sub_roadleft) (65)
    CreateObject(979,-2678.10009766,2143.00000000,55.29999924,0.00000000,0.00000000,359.97253418); //object(sub_roadleft) (66)
    CreateObject(979,-2668.60009766,2143.00000000,55.29999924,0.00000000,0.00000000,359.97253418); //object(sub_roadleft) (67)
    CreateObject(979,-2495.89990234,37.20000076,130.19999695,0.00000000,0.00000000,359.97253418); //object(sub_roadleft) (68)
    CreateObject(979,-2647.60009766,342.70001221,4.19999981,0.00000000,0.00000000,267.97247314); //object(sub_roadleft) (69)
    CreateObject(979,-2664.69995117,425.50000000,4.19999981,0.00000000,0.00000000,323.96752930); //object(sub_roadleft) (70)
    CreateObject(979,-2648.19995117,324.50000000,4.19999981,0.00000000,0.00000000,267.96752930); //object(sub_roadleft) (72)
    CreateObject(979,-2653.10009766,319.50000000,4.19999981,0.00000000,0.00000000,181.96751404); //object(sub_roadleft) (73)
    CreateObject(979,-2661.89990234,319.29998779,4.19999981,0.00000000,0.00000000,181.96655273); //object(sub_roadleft) (74)
    CreateObject(979,-2711.69995117,323.50000000,4.19999981,0.00000000,0.00000000,181.96655273); //object(sub_roadleft) (75)
    CreateObject(979,-2671.19921875,319.09960938,4.19999981,0.00000000,0.00000000,181.96655273); //object(sub_roadleft) (76)
    CreateObject(979,-2702.50000000,323.70001221,4.00000000,0.00000000,0.00000000,181.96655273); //object(sub_roadleft) (77)
    CreateObject(979,-2693.10009766,324.10000610,4.00000000,0.00000000,0.00000000,181.96655273); //object(sub_roadleft) (79)
    CreateObject(979,-2657.30004883,420.10000610,4.19999981,0.00000000,0.00000000,323.96484375); //object(sub_roadleft) (80)
    CreateObject(979,-2650.00000000,414.60000610,4.19999981,0.00000000,0.00000000,323.96484375); //object(sub_roadleft) (81)
    CreateObject(979,-2645.60009766,407.70001221,4.19999981,0.00000000,0.00000000,277.96484375); //object(sub_roadleft) (82)
    CreateObject(979,-2700.00000000,450.79998779,4.00000000,0.00000000,0.00000000,359.95959473); //object(sub_roadleft) (83)
    CreateObject(979,-2709.30004883,451.00000000,4.00000000,0.00000000,0.00000000,359.95605469); //object(sub_roadleft) (84)
    CreateObject(979,-2767.19995117,428.60000610,4.30000019,0.00000000,0.00000000,359.95605469); //object(sub_roadleft) (85)
    CreateObject(979,-2718.79980469,451.09960938,4.00000000,0.00000000,0.00000000,359.95605469); //object(sub_roadleft) (86)
    CreateObject(979,-2757.69995117,428.50000000,4.19999981,0.00000000,0.00000000,359.95605469); //object(sub_roadleft) (87)
    CreateObject(979,-2748.50000000,428.29998779,4.19999981,0.00000000,0.00000000,359.95605469); //object(sub_roadleft) (88)
    CreateObject(979,-2770.50000000,318.89999390,4.30000019,0.00000000,0.00000000,179.95605469); //object(sub_roadleft) (89)
    CreateObject(979,-2761.39990234,318.79998779,4.19999981,0.00000000,0.00000000,179.95056152); //object(sub_roadleft) (90)
    CreateObject(979,-2752.10009766,318.39999390,4.19999981,0.00000000,0.00000000,179.95056152); //object(sub_roadleft) (91)
    CreateObject(979,-2743.29980469,318.19921875,4.19999981,0.00000000,0.00000000,179.95056152); //object(sub_roadleft) (94)
    CreateObject(3884,-2789.69995117,419.10000610,25.60000038,0.00000000,0.00000000,0.00000000); //object(samsite_sfxrf) (1)
    CreateObject(3884,-2788.19995117,373.60000610,47.70000076,0.00000000,0.00000000,0.00000000); //object(samsite_sfxrf) (2)
    CreateObject(3884,-2788.39990234,330.39999390,25.39999962,0.00000000,0.00000000,190.00000000); //object(samsite_sfxrf) (3)
    CreateObject(3884,-2730.89990234,312.10000610,23.29999924,0.00000000,0.00000000,189.99755859); //object(samsite_sfxrf) (4)
    CreateObject(3884,-2681.50000000,314.20001221,23.29999924,0.00000000,0.00000000,189.99755859); //object(samsite_sfxrf) (5)
    CreateObject(3884,-2730.80004883,440.00000000,23.29999924,0.00000000,0.00000000,3.99755859); //object(samsite_sfxrf) (6)
    CreateObject(3884,-2637.69921875,376.50000000,28.50000000,0.00000000,0.00000000,271.99401855); //object(samsite_sfxrf) (7)
    CreateObject(3884,-2681.69921875,440.39941406,23.29999924,0.00000000,0.00000000,3.99353027); //object(samsite_sfxrf) (8)
    CreateObject(2985,-2698.69995117,450.20001221,3.29999995,0.00000000,0.00000000,100.00000000); //object(minigun_base) (1)
    CreateObject(2985,-2648.60009766,329.50000000,3.40000010,0.00000000,0.00000000,343.99755859); //object(minigun_base) (2)
    CreateObject(979,-2648.00000000,334.29998779,4.19999981,0.00000000,0.00000000,267.96752930); //object(sub_roadleft) (96)
    CreateObject(2985,-2704.60009766,378.00000000,10.00000000,0.00000000,348.00000000,349.99291992); //object(minigun_base) (3)
    CreateObject(2985,-2708.30004883,374.39999390,8.00000000,0.00000000,344.00000000,231.99291992); //object(minigun_base) (4)
    CreateObject(2892,-2706.19995117,454.10000610,3.20000005,0.00000000,0.00000000,88.00000000); //object(temp_stinger) (1)
    CreateObject(2892,-2706.50000000,315.79998779,3.20000005,0.00000000,0.00000000,87.99499512); //object(temp_stinger) (2)
    CreateObject(2892,-2644.50000000,334.50000000,3.20000005,0.00000000,350.00000000,351.99499512); //object(temp_stinger) (3)
    }
    SendClientMessage(playerid,COLOR_WHITE,"((*San Fierro wurde erfolgreich abgesperrt,over*))");
    return 1;
    }

    Kurze Erklärung des Unterschiedes von SetTimer und SetTimerEx. Der Unterschied von SetTimerEx zu SetTimer ist, dass man mit SetTimerEx dem public noch eine Variable mitgeben kann. Das bedeutet soviel wie, dass du mit SetTimerEx dem public "Payday" noch die playerid schicken kannst.


    Das würde dann so aussehen:
    SetTimerEx("Payday", 1000*60, true, i, playerid);


    public Payday(playerid)
    {
    SetPVarInt(playerid, "Payday", GetPVarInt(playerid, "Payday") + 1);
    SendClientMessage(playerid,Grün,"1 Minute vorbei");
    return 1;
    }


    So sollte es stimmen. Bin mir aber nicht ganz sicher.
    Kleiner Tipp von mir noch: Erstelle den Timer nicht unter OnPlayerRespawn, es kann nämlich sein das Spieler respawnen, auch wenn sie sich nicht gerade neu eingeloggt haben.
    Lass den Timer am besten erstellen, nachdem der Spieler sich eingeloggt hat.

    Ich habe durchaus eine Idee warum.
    Was du tust ist, du erstellst sobald EIN Spieler spawnt einen Timer der für ALLE Spieler das Level erhöht.
    Wenn du für jeden Spieler einen Timer haben willst benötigst du die Funktion SetTimerEx.

    Guten Abend,


    ich bin momentan dabei Mathe zu lernen und komme bei einer Aufgabe einfach nicht weiter.
    Soweit ich mitbekommen habe findet sich in der Aufgabe eine Polynomdivision. Nur leider komme ich trotz dieses Tipps nicht weiter.
    Vielleicht findet sich hier ja ein Mathe-Genie welcher bereit wäre diese Aufgabe zu lösen.


    Es geht um diese Aufgabe:


    Gleichung: -x^3 + (9 - t) * x - 3*t = 0
    Aufgabe: Für welche Werte von t gibt es zwei weitere Lösungen ?


    Ich hoffe jemand könnte mir helfen. Danke schon mal im voraus.


    Mit freundlichen Grüßen
    Darklight

    Du hast "sendid" als 128 langes Array deklariert. Versuche das ganze mal so:
    ocmd:w(playerid,params[])
    {
    if(AdminLevel[playerid] >= 1)
    {
    new name[128],text[128],string[128],sendid;
    if(sscanf(params,"us",sendid,text))return SendClientMessage(playerid,Color_Red,"Verwendung /W [ID] [Nachricht]");
    GetPlayerName(playerid,name,sizeof(name));
    format(string,sizeof(string),"Admin %s Antwortet %s",name,text);
    SendClientMessage(sendid,Color_White,string); <- Error Zeile.
    return 1;
    }
    return 1;
    }

    Schreib doch einfach in die For-Schleife das sie solange laufen soll wie i<10 ist.
    new array[MAX_PLAYERS][10];


    ocmd:omg(playerid,params[])
    {
    for(new i=0; i<10; i++)
    {
    array[playerid][i]=0;
    format(stringbert,sizeof(stringbert),"%i",i);
    SendClientMessage(playerid,ROT,stringbert);
    }
    return 1;
    }

    Also wenn ich dein Problem jetzt richtig verstehe, dann weist du nicht wie du aus der Datenbank die Informationen der Fahrzeuge herausbekommst und diese dann in deinem Script erstellst ?
    Hier mal mein Vorschlag: du rufst per mysql_query("SELECT * FROM fahrzeugdatenbank WHERE ID = '%d'"); die Fahrzeugdaten aus der Tabelle ab.
    Du hast dann so etwas: 471 Quad Los Santos Bikeshop 2000 2136.7031 -1131.6807 25.0902 56.4040
    Dies kannst du mithilfe von sscanf in Variablen speichern und damit dann dein Fahrzeug erstellen.

    getdate() gibt dir aber den Tag wieder, also 26.06.2012 ... wenn du jetzt einen bannst, z.B um 23:45 für 24 Stunden wäre er nach 15 Minuten, also um 00:00 wieder entbannt.