Hey breadfishe @Jeffry
undzwar ich wollte scripten das wenn man in ein pickup läuft sich ein fenster öffnet aber ich kriege errors
erstmal definiert
dann
public OnGameModeInit()
//---------------------------Pickups------------------------------------
smweapon = CreatePickup(24,1,799.1258,-620.3854,16.3359);
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == smweapon)
{
ShowPlayerDialog(playerid, Dialog_Weapons, DIALOG_STYLE_LIST,"Waffen:","Messer 100$\nRosen Gratis
\nMolotov Cocktail 10x 10.000$\nMP5 200x 10.000$\nSniper 20x 10.000$\nRPG 10x 100.000$
\nHaftbombe 10x 100.000$","Accept","decline");
return 1;
}
und dann
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == Dialog_Weapons)
{
if (response)
{
if (listitem == 0)
{
GivePlayerWeapon(playerid, 4, 1);
}
if (listitem == 1)
{
GivePlayerWeapon(playerid, 14, 1);
}
if (listitem == 2)
{
GivePlayerWeapon(playerid, 18, 10);
}
if (listitem == 3)
{
GivePlayerWeapon(playerid, 29, 200);
}
if (listitem == 4)
{
GivePlayerWeapon(playerid, 34, 20);
}
if (listitem == 5)
{
GivePlayerWeapon(playerid, 35, 10);
}
if (listitem == 6)
{
GivePlayerWeapon(playerid, 39, 10);
}
}
return 1;
}
Alles anzeigen
und die errors sind :
C:\Users\Für LP\Desktop\Komplett gta\GTA!\GTA San Andreas\gamemodes\selfmade.pwn(311) : error 037: invalid string (possibly non-terminated string)
C:\Users\Für LP\Desktop\Komplett gta\GTA!\GTA San Andreas\gamemodes\selfmade.pwn(311) : error 017: undefined symbol "Messer"
C:\Users\Für LP\Desktop\Komplett gta\GTA!\GTA San Andreas\gamemodes\selfmade.pwn(311) : warning 215: expression has no effect
C:\Users\Für LP\Desktop\Komplett gta\GTA!\GTA San Andreas\gamemodes\selfmade.pwn(311) : error 001: expected token: ";", but found "$"
C:\Users\Für LP\Desktop\Komplett gta\GTA!\GTA San Andreas\gamemodes\selfmade.pwn(311) : fatal error 107: too many error messages on one line