Beiträge von Diabol0

    Also 26 Errors sind immer Klammerfehler,
    ich hab mir das jezt durchgelesen und erkenne ehrlich gesagt keinen Klammerfehler,
    überleg mal was du zuletzt geändert hast, was diesen Fehler hervor raf.
    MfG

    Du hast 317 Punkte erreicht, damit befindest du dich auf Platz 66176 von 66177



    Du schreibst [size=1]448 Zeichen pro Minute[/size]
    Du hast [size=1]75 korrekt[/size] geschriebene Wörter und
    Du hast [size=1]4 falsch[/size] geschriebene Wörter


    // hab nochmal gemacht, gleich viel besser :D


    Habs so gemacht wie du gesagt hast:
    #include <a_samp>
    #define GSMENU 1
    // Ein Super pro hat mir geholfen, funzt nun alles, danke nochmal an dich Black

    44162. if(dialogid == GSMENU)
    44163. {
    44164. if(response)
    44165. {
    44166. if(listitem == 0) // Pistole
    44167. {
    44168. GivePlayerWeapon(playa, 22, 100);
    44169. }
    44170. if(listitem == 1) // Desert Eagle
    44171. {
    44172. GivePlayerWeapon(playa ,24, 75);
    44173. }
    44174. if(listitem == 2) // M4
    44175. {
    44176. GivePlayerWeapon(playa ,31, 90);
    44177. }
    44178. if(listitem == 3) // Gewehr
    44179. {
    44180. GivePlayerWeapon(playa ,33, 20);
    44181. }
    44182. if(listitem == 4) // MP5
    44183. {
    44184. GivePlayerWeapon(playa ,29, 90);
    44185. }
    44186. if(listitem == 5) // Shotgun
    44187. {
    44188. GivePlayerWeapon(playa ,25, 60);
    44189. }
    44190. if(listitem == 6) // BaseBallSchläger
    44191. {
    44192. GivePlayerWeapon(playa ,5, 1);
    44193. }
    44194. }
    44195. return 1;
    44196. }


    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\pawno\include\JunkBuster.inc(3189) : warning 201: redefinition of constant/macro (symbol "OnGameModeInit")
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(3420) : warning 235: public function lacks forward declaration (symbol "RemoveRoadblock")
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(6143) : warning 209: function "JB_OnPlayerSpawn" should return a value
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(14647) : error 001: expected token: ")", but found "{"
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44162) : error 010: invalid function or declaration
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44164) : error 010: invalid function or declaration
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44166) : error 010: invalid function or declaration
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44168) : error 021: symbol already defined: "JB_GivePlayerWeapon"
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44170) : error 010: invalid function or declaration
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44172) : error 021: symbol already defined: "JB_GivePlayerWeapon"
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44174) : error 010: invalid function or declaration
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44176) : error 021: symbol already defined: "JB_GivePlayerWeapon"
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44178) : error 010: invalid function or declaration
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44180) : error 021: symbol already defined: "JB_GivePlayerWeapon"
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44182) : error 010: invalid function or declaration
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44184) : error 021: symbol already defined: "JB_GivePlayerWeapon"
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44186) : error 010: invalid function or declaration
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44188) : error 021: symbol already defined: "JB_GivePlayerWeapon"
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44190) : error 010: invalid function or declaration
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44192) : error 021: symbol already defined: "JB_GivePlayerWeapon"
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44195) : error 010: invalid function or declaration
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(11641) : warning 204: symbol is assigned a value that is never used: "Timer"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    18 Errors.


    Hab die Zeilen jezt davor geschrieben ^^

    So siehts nun aus:
    if(dialogid == GSMENU)
    {
    if(response)
    {
    if(listitem == 0) // Pistole
    {
    JB_GivePlayerWeapon(playa, 22, 100);
    }
    if(listitem == 1) // Desert Eagle
    {
    JB_GivePlayerWeapon(playa ,24, 75);
    }
    if(listitem == 2) // M4
    {
    JB_GivePlayerWeapon(playa ,31, 90);
    }
    if(listitem == 3) // Gewehr
    {
    JB_GivePlayerWeapon(playa ,33, 20);
    }
    if(listitem == 4) // MP5
    {
    JB_GivePlayerWeapon(playa ,29, 90);
    }
    if(listitem == 5) // Shotgun
    {
    JB_GivePlayerWeapon(playa ,25, 60);
    }
    if(listitem == 6) // BaseBallSchläger
    {
    JB_GivePlayerWeapon(playa ,5, 1);
    }
    }
    return 1;
    }
    Mit den Errors:

    [ SCRIPTING ] Dialogmenü in SA-MP 0.3 erstellen


    // So sieht mein momentaner Dialog aus:
    if(dialogid == GSMENU)
    {
    if(response)
    {
    if(listitem == 0) // Pistole
    {
    GivePlayerWeapon(playa, 22, 100);
    }
    if(listitem == 1) // Desert Eagle
    {
    GivePlayerWeapon(playa ,24, 75);
    }
    if(listitem == 2) // M4
    {
    GivePlayerWeapon(playa ,31, 90);
    }
    if(listitem == 3) // Gewehr
    {
    GivePlayerWeapon(playa ,33, 20);
    }
    if(listitem == 4) // MP5
    {
    GivePlayerWeapon(playa ,29, 90);
    }
    if(listitem == 5) // Shotgun
    {
    GivePlayerWeapon(playa ,25, 60);
    }
    if(listitem == 6) // BaseBallSchläger
    {
    GivePlayerWeapon(playa ,5, 1);
    }
    }
    return 1;
    }
    Hab noch ein return 1; rangehängt^^
    sind aber immer noch viele errors

    Hallo Community
    Ich habe nach den Regeln des Tutorials einen Waffen Dialog erstellt, hier erstmal mein Dialog:
    Unter public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    if(dialogid == GSMENU)
    {
    if(response)
    {
    if(listitem == 0) // Pistole
    {
    GivePlayerWeapon(playerid,22,100);
    }
    if(listitem == 1) // Desert Eagle
    {
    GivePlayerWeapon(playerid,24,75);
    }
    if(listitem == 2) // M4
    {
    GivePlayerWeapon(playerid,31,90);
    }
    if(listitem == 3) // Gewehr
    {
    GivePlayerWeapon(playerid,33,20);
    }
    if(listitem == 4) // MP5
    {
    GivePlayerWeapon(playerid,29,90);
    }
    if(listitem == 5) // Shotgun
    {
    GivePlayerWeapon(playerid,25,60);
    }
    if(listitem == 6) // BaseBallSchläger
    {
    GivePlayerWeapon(playerid,5,1);
    }
    }
    }
    Bei Public OnPlayerCommandText
    if (strcmp("/waffen", cmdtext, true) == 0)
    {
    if(PlayerToPoint(2.0,2496.6323,-1711.4374,1014.7422);
    {
    ShowPlayerDialog(playerid, GSMENU, DIALOG_STYLE_LIST, "Waffen", "Pistole\nDesert Eagle\nM4\nGewehr\nMP5\nShotgun\nBaseBallSchläger", "Auswählen", "Abbrechen");


    }
    return 1;
    }
    Und ganz oben im script:
    #define GSMENU 0


    Und das sind die Errrors:
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\pawno\include\JunkBuster.inc(3189) : warning 201: redefinition of constant/macro (symbol "OnGameModeInit")
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(3420) : warning 235: public function lacks forward declaration (symbol "RemoveRoadblock")
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(6143) : warning 209: function "JB_OnPlayerSpawn" should return a value
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(14644) : warning 213: tag mismatch
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(14644) : warning 202: number of arguments does not match definition
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(14644) : error 001: expected token: ")", but found ";"
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(14644) : error 036: empty statement
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44159) : error 010: invalid function or declaration
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44161) : error 010: invalid function or declaration
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44163) : error 010: invalid function or declaration
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44165) : error 021: symbol already defined: "JB_GivePlayerWeapon"
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44167) : error 010: invalid function or declaration
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44169) : error 021: symbol already defined: "JB_GivePlayerWeapon"
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44171) : error 010: invalid function or declaration
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44173) : error 021: symbol already defined: "JB_GivePlayerWeapon"
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44175) : error 010: invalid function or declaration
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44177) : error 021: symbol already defined: "JB_GivePlayerWeapon"
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44179) : error 010: invalid function or declaration
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44181) : error 021: symbol already defined: "JB_GivePlayerWeapon"
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44183) : error 010: invalid function or declaration
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44185) : error 021: symbol already defined: "JB_GivePlayerWeapon"
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44187) : error 010: invalid function or declaration
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(44189) : error 021: symbol already defined: "JB_GivePlayerWeapon"
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(11641) : warning 204: symbol is assigned a value that is never used: "Timer"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    18 Errors.

    Danke im Vorraus :D
    MFG

    Dann sag mir was ich machen soll, ich habe jez gepusht nach mehr als 5 tagen -.-.
    Den Thread wird sonst nie einer mehr beantworten...

    das versteh ich nich was ich in der include machen soll,
    und nachdem ich alle erforderlichen dinge für objectstreamer eingefügt habe kommt das:
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\pawno\include\Obj_streamer.inc(274) : error 022: must be lvalue (non-constant)
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\pawno\include\Obj_streamer.inc(274) : warning 215: expression has no effect
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\pawno\include\Obj_streamer.inc(275) : warning 217: loose indentation
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\pawno\include\Obj_streamer.inc(275) : error 033: array must be indexed (variable "updatespassed")
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\pawno\include\Obj_streamer.inc(278) : error 033: array must be indexed (variable "updatespassed")
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(12673) : error 017: undefined symbol "StreamObject_OnGameModeExit"
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\gamemodes\script.pwn(14617) : error 017: undefined symbol "StreamObject_OnGameModeInit"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    5 Errors.

    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\pawno\include\Obj_streamer.inc(274) : error 022: must be lvalue (non-constant)
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\pawno\include\Obj_streamer.inc(274) : warning 215: expression has no effect
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\pawno\include\Obj_streamer.inc(275) : warning 217: loose indentation
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\pawno\include\Obj_streamer.inc(275) : error 033: array must be indexed (variable "updatespassed")
    C:\Users\EL_Diabolo\Desktop\GTA 0.3 Server R7\pawno\include\Obj_streamer.inc(278) : error 033: array must be indexed (variable "updatespassed")
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    3 Errors.


    Muss ich die Sachen eig auch einfügen ? :o

    Code
    StreamObject_OnGameModeInit();