Zeile (11) : Unbekannte Variable : "pickupid"
Zeile (24) : error 025: function heading differs from prototype
Zeile (26) : Unbekannte Variable : "pickupid"
Zeile (28) : Unbekannte Variable : "playerid"
xDD
Autospawnener => Autohaus
- G0TT
- Geschlossen
- Erledigt
Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!
Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
-
-
#include <a_samp>
#define Dialog 4670new carpickup;
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print("Flugzeugautohaus");
print("--------------------------------------\n");
carpickup = AddStaticPickup(picupid,1,x,y,z,-1);
return 1;
}public OnFilterScriptExit()
{
print("\n----------------------------------");
print("Flugzeugautohaus");
print("----------------------------------\n");
return 1;
}public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid==carpickup)
{
ShowPlayerDialog(playerid, Dialog, DIALOG_STYLE_LIST, "Auto Dialog", "Beagle\nCropduster\nDodo\nRustler\nSkimmer\nStuntplane\nMaverick\nSeasparrow\nSparrow", "Spawn", "Abbrechen");
}
return 1;
}public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == Dialog)
{
switch(listitem)
{
case 0:
{
new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
Int = GetPlayerInterior(playerid);
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Ang);
GetPlayerInterior(playerid);
pVeh = CreateVehicle(511, X, Y, Z, Ang, 0, 0, -1);
LinkVehicleToInterior(pVeh, Int);
PutPlayerInVehicle(playerid, pVeh, 0);
GivePlayerMoney(playerid,-2000);
}
case 1:
{
new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
Int = GetPlayerInterior(playerid);
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Ang);
pVeh = CreateVehicle(512, X, Y, Z, Ang, 0, 0, -1);
LinkVehicleToInterior(pVeh, Int);
PutPlayerInVehicle(playerid, pVeh, 0);
GivePlayerMoney(playerid,-2000);
}
case 2:
{
new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
Int = GetPlayerInterior(playerid);
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Ang);
pVeh = CreateVehicle(593, X, Y, Z, Ang, 0, 0, -1);
LinkVehicleToInterior(pVeh, Int);
PutPlayerInVehicle(playerid, pVeh, 0);
GivePlayerMoney(playerid,-2000);
}
case 3:
{
new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
Int = GetPlayerInterior(playerid);
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Ang);
pVeh = CreateVehicle(476, X, Y, Z, Ang, 0, 0, -1);
LinkVehicleToInterior(pVeh, Int);
PutPlayerInVehicle(playerid, pVeh, 0);
GivePlayerMoney(playerid,-2000);
}
case 4:
{
new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
Int = GetPlayerInterior(playerid);
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Ang);
pVeh = CreateVehicle(460, X, Y, Z, Ang, 0, 0, -1);
LinkVehicleToInterior(pVeh, Int);
PutPlayerInVehicle(playerid, pVeh, 0);
GivePlayerMoney(playerid,-2000);
}
case 5:
{
new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
Int = GetPlayerInterior(playerid);
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Ang);
pVeh = CreateVehicle(513, X, Y, Z, Ang, 0, 0, -1);
LinkVehicleToInterior(pVeh, Int);
PutPlayerInVehicle(playerid, pVeh, 0);
GivePlayerMoney(playerid,-2000);
}
case 6:
{
new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
Int = GetPlayerInterior(playerid);
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Ang);
pVeh = CreateVehicle(487, X, Y, Z, Ang, 0, 0, -1);
LinkVehicleToInterior(pVeh, Int);
PutPlayerInVehicle(playerid, pVeh, 0);
GivePlayerMoney(playerid,-2000);
}
case 7:
{
new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
Int = GetPlayerInterior(playerid);
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Ang);
pVeh = CreateVehicle(447, X, Y, Z, Ang, 0, 0, -1);
LinkVehicleToInterior(pVeh, Int);
PutPlayerInVehicle(playerid, pVeh, 0);
GivePlayerMoney(playerid,-2000);
}
case 8:
{
new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
Int = GetPlayerInterior(playerid);
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Ang);
pVeh = CreateVehicle(469, X, Y, Z, Ang, 0, 0, -1);
LinkVehicleToInterior(pVeh, Int);
PutPlayerInVehicle(playerid, pVeh, 0);
GivePlayerMoney(playerid,-2000);
}
}
}
return 1;
}Freundliche Grüsse
Vince -
Zeile (11) : Unbekannte Variable : "pickupid"
:DD
-
-
Keine Bilder
Haste auch mit bildern ?!
-
-
1314
2 Players
-
#include <a_samp>
#define Dialog 4670new carpickup;
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print("Flugzeugautohaus");
print("--------------------------------------\n");
carpickup = AddStaticPickup(1314,1,x,y,z,-1);
return 1;
}public OnFilterScriptExit()
{
print("\n----------------------------------");
print("Flugzeugautohaus");
print("----------------------------------\n");
return 1;
}public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid==carpickup)
{
ShowPlayerDialog(playerid, Dialog, DIALOG_STYLE_LIST, "Auto Dialog", "Beagle\nCropduster\nDodo\nRustler\nSkimmer\nStuntplane\nMaverick\nSeasparrow\nSparrow", "Spawn", "Abbrechen");
}
return 1;
}public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == Dialog)
{
switch(listitem)
{
case 0:
{
new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
Int = GetPlayerInterior(playerid);
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Ang);
GetPlayerInterior(playerid);
pVeh = CreateVehicle(511, X, Y, Z, Ang, 0, 0, -1);
LinkVehicleToInterior(pVeh, Int);
PutPlayerInVehicle(playerid, pVeh, 0);
GivePlayerMoney(playerid,-2000);
}
case 1:
{
new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
Int = GetPlayerInterior(playerid);
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Ang);
pVeh = CreateVehicle(512, X, Y, Z, Ang, 0, 0, -1);
LinkVehicleToInterior(pVeh, Int);
PutPlayerInVehicle(playerid, pVeh, 0);
GivePlayerMoney(playerid,-2000);
}
case 2:
{
new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
Int = GetPlayerInterior(playerid);
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Ang);
pVeh = CreateVehicle(593, X, Y, Z, Ang, 0, 0, -1);
LinkVehicleToInterior(pVeh, Int);
PutPlayerInVehicle(playerid, pVeh, 0);
GivePlayerMoney(playerid,-2000);
}
case 3:
{
new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
Int = GetPlayerInterior(playerid);
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Ang);
pVeh = CreateVehicle(476, X, Y, Z, Ang, 0, 0, -1);
LinkVehicleToInterior(pVeh, Int);
PutPlayerInVehicle(playerid, pVeh, 0);
GivePlayerMoney(playerid,-2000);
}
case 4:
{
new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
Int = GetPlayerInterior(playerid);
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Ang);
pVeh = CreateVehicle(460, X, Y, Z, Ang, 0, 0, -1);
LinkVehicleToInterior(pVeh, Int);
PutPlayerInVehicle(playerid, pVeh, 0);
GivePlayerMoney(playerid,-2000);
}
case 5:
{
new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
Int = GetPlayerInterior(playerid);
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Ang);
pVeh = CreateVehicle(513, X, Y, Z, Ang, 0, 0, -1);
LinkVehicleToInterior(pVeh, Int);
PutPlayerInVehicle(playerid, pVeh, 0);
GivePlayerMoney(playerid,-2000);
}
case 6:
{
new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
Int = GetPlayerInterior(playerid);
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Ang);
pVeh = CreateVehicle(487, X, Y, Z, Ang, 0, 0, -1);
LinkVehicleToInterior(pVeh, Int);
PutPlayerInVehicle(playerid, pVeh, 0);
GivePlayerMoney(playerid,-2000);
}
case 7:
{
new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
Int = GetPlayerInterior(playerid);
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Ang);
pVeh = CreateVehicle(447, X, Y, Z, Ang, 0, 0, -1);
LinkVehicleToInterior(pVeh, Int);
PutPlayerInVehicle(playerid, pVeh, 0);
GivePlayerMoney(playerid,-2000);
}
case 8:
{
new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
Int = GetPlayerInterior(playerid);
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Ang);
pVeh = CreateVehicle(469, X, Y, Z, Ang, 0, 0, -1);
LinkVehicleToInterior(pVeh, Int);
PutPlayerInVehicle(playerid, pVeh, 0);
GivePlayerMoney(playerid,-2000);
}
}
}
return 1;
}Sollte dann so gehen eigentlich^^
Freundliche Grüsse
Vince -
Erstmal danke aber wenn ich in das icon reingehe passiert nix^^
-
Für den Code bin ich nicht verantwortlich^^ Der ist nicht von mir
Freundliche Grüsse
Vince -
Kannst du mir da nicht iwie helfen^^?
-
Hab den Code mal richtig durchgeschaut... Und für mich stimmt er-.-
Wenn der Spieler in den Pickup geht, sollte eine Dialog kommen..
Freundliche Grüsse
Vince -
kanns du das mal testen ?!?
-
Ich bin noch in der Firma am arbeiten.. Hab zwar grad nix zu tun.. Aber auf den PC's ist doch kein GTA+SAMP installiert xDD... Bin um 18:30 zu Hause.. dann kannste mich ja mal in Skype anschreiben..
Skype:airworlds
Freundliche Grüsse
Vince -
breadfish.de
Hat das Thema geschlossen.