Hallo Community
Habe Frage kann einer mir Unterbodenbeleuchtung scripten das es mit einen befehl an get
un gefahr wie hier http://www.youtube.com/watch?v=106ILXQAlOk soll es aussehen
danke euch in vorraus
Hallo Community
Habe Frage kann einer mir Unterbodenbeleuchtung scripten das es mit einen befehl an get
un gefahr wie hier http://www.youtube.com/watch?v=106ILXQAlOk soll es aussehen
danke euch in vorraus
ihrgend wie get das nicht
Dann hast du dieses "ocmd" nicht, änder den Befehl einfach um.
kannste das pls als fs machen weil ich kapir das noch nicht ganz
Oben
#define neonmenu 1
Bei OnPlayerCommandText
new cmd[256];
if(strcmp("/neon",cmd,true))
{
ShowPlayerDialog(playerid, neonmenu, DIALOG_STYLE_LIST, "Neonlichter Menu", "Blau\nGrün\nRot\nWeiß\nGelb\nPink", "Auswählen", "Abbrechen");
return 1;
}
Bei OnDialogRespone
if(dialogid == neonmenu) //Neon Röhren
{
if(response)
{
if(listitem == 0) //Blau
{
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon", CreateObject(18648,0,0,0,0,0,0,283));
SetPVarInt(playerid, "neon1", CreateObject(18648,0,0,0,0,0,0,283));
AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), -0.8,0,-0.70,0,0,0);
}
if(listitem == 1) //Grün
{
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon", CreateObject(18649,0,0,0,0,0,0,283));
SetPVarInt(playerid, "neon1", CreateObject(18649,0,0,0,0,0,0,283));
AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), -0.8,0,-0.70,0,0,0);
}
if(listitem == 2) //Rot
{
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon", CreateObject(18647,0,0,0,0,0,0,283));
SetPVarInt(playerid, "neon1", CreateObject(18647,0,0,0,0,0,0,283));
AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), -0.8,0,-0.70,0,0,0);
}
if(listitem == 3) //Weiß
{
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon", CreateObject(18652,0,0,0,0,0,0,283));
SetPVarInt(playerid, "neon1", CreateObject(18652,0,0,0,0,0,0,283));
AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), -0.8,0,-0.70,0,0,0);
}
if(listitem == 4) //Gelb
{
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon", CreateObject(18650,0,0,0,0,0,0,283));
SetPVarInt(playerid, "neon1", CreateObject(18650,0,0,0,0,0,0,283));
AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), -0.8,0,-0.70,0,0,0);
}
if(listitem == 5) //Pink
{
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon", CreateObject(18651,0,0,0,0,0,0,283));
SetPVarInt(playerid, "neon1", CreateObject(18651,0,0,0,0,0,0,283));
AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), -0.8,0,-0.70,0,0,0);
}
}
}
return 1;
}
Habe ich jetzt von dem Thema extra genommen, jetzt solltest du es verstehen.
Viel Erfol.g
brauche ich ein include?
weil ich habe bei jeden AttachObjectToVehicle ein error
und bei jeden listitem ein error
Dann schick mal die Errors + Zeilen
hier
C:\Users\***\Desktop\Reallife\gamemodes\Reallife.pwn(32211) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Users\***\Desktop\Reallife\gamemodes\Reallife.pwn(32212) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Users\***\Desktop\Reallife\gamemodes\Reallife.pwn(32219) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Users\***\Desktop\Reallife\gamemodes\Reallife.pwn(32220) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Users\***\Desktop\Reallife\gamemodes\Reallife.pwn(32227) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Users\***\Desktop\Reallife\gamemodes\Reallife.pwn(32228) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Users\***\Desktop\Reallife\gamemodes\Reallife.pwn(32235) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Users\***\Desktop\Reallife\gamemodes\Reallife.pwn(32236) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Users\***\Desktop\Reallife\gamemodes\Reallife.pwn(32243) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Users\***\Desktop\Reallife\gamemodes\Reallife.pwn(32244) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Users\***\Desktop\Reallife\gamemodes\Reallife.pwn(32251) : error 017: undefined symbol "AttachObjectToVehicle"
C:\Users\***\Desktop\Reallife\gamemodes\Reallife.pwn(32252) : error 017: undefined symbol "AttachObjectToVehicle"
Oben einfügen:
#include <a_objects>
ist drine
haben fehler gefunden
include war von 0.3b
Ja dann compilen dann sidn die Errors weg.
Weiß einer wieso die nicht leuchten ???
Bei mir öffnet sich kein Fenster und es passiert auch einfach gar nichts, wenn ich /neon eingebe. Woran könnte das liegen? Pls Help
Hab auch alles richtig beim Compilen!
Bei mir öffnet sich was aber wen ich was aus wähle kommt keine fabe