Jump to content
  • 0

pomoc Eror pomoc auto.pwn(11) : error 003: declaration of a local variable must appear in a compound block


AdoUMF

Dotaz

Potrebujem pomoc hadze mi tento

 

eror auto.pwn(11) : error 003: declaration of a local variable must appear in a compound block








 

#include <a_samp>
new hitmanauto;
new myobject1;
public OnFilterScriptInit()
{
hitmanauto = CreatePickup(1318, 1, 1746.9839, 1855.3719, 10.8203, -1);
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == hitmanauto)
new myobject1 = CreateObject(3633,0,0,-1000,0,0,0,100);
AttachObjectToVehicle(myobject1, GetPlayerVehicleID(playerid), -0.000000,1.725000,-0.300000,-13.499999,0.000000,0.000000);
// :
new myobject2 = CreateObject(362,0,0,-1000,0,0,0,100);
AttachObjectToVehicle(myobject2, GetPlayerVehicleID(playerid), 0.074999,0.824999,0.524999,-5.399995,29.700004,91.799980);

// :
new myobject = CreateObject(359,0,0,-1000,0,0,0,100);
AttachObjectToVehicle(myobject, GetPlayerVehicleID(playerid), 1.049999,0.749999,0.000000,83.699989,0.000000,89.099983);

// :
new myobject3 = CreateObject(359,0,0,-1000,0,0,0,100);
AttachObjectToVehicle(myobject3, GetPlayerVehicleID(playerid), -1.049999,0.750000,0.074999,-80.999992,-2.700000,89.099983);

// :
new myobject4 = CreateObject(356,0,0,-1000,0,0,0,100);
AttachObjectToVehicle(myobject4, GetPlayerVehicleID(playerid), 0.750000,-0.225000,0.524999,32.400005,0.000000,97.199974);

// :
new myobject5 = CreateObject(356,0,0,-1000,0,0,0,100);
AttachObjectToVehicle(myobject5, GetPlayerVehicleID(playerid), -0.750000,-0.225000,0.525000,-32.400005,8.099998,94.499977);

// :
new myobject7 = CreateObject(1578,0,0,-1000,0,0,0,100);
AttachObjectToVehicle(myobject7, GetPlayerVehicleID(playerid), -0.074999,-1.950000,0.150000,0.000000,0.000000,0.000000);
return 0;
}

Link to comment
Share on other sites

4 odpovědí na tuto otázku

Recommended Posts

  • 0

Máš 2x definici new myobject1.

ked ju zrusim tak mi vihodi 3 erory

error 003: declaration of a local variable must appear in a compound block

: error 017: undefined symbol "myobject1"

: error 017: undefined symbol "myobject1"

Link to comment
Share on other sites

  • 0

A nebude to čistě náhodou tím že za if(pickupid == hitmanauto) chybí rozvíjející závorka { ?

To je do očí bijící

Link to comment
Share on other sites

  • 0

A nebude to čistě náhodou tím že za if(pickupid == hitmanauto) chybí rozvíjející závorka { ?

To je do očí bijící

 

Dik kamo bolo to tim. mi sme slepy vis jak :d :d dik

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...