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
MFG