Jump to content
  • 0

ERORI ?


Yamato

Question

de la ce oare apar erorile astea ? 

   Erori :

error 008: must be a constant expression; assumed zero
error 032: array index out of bounds (variable "infcop")
  
  Randurile : 

    new infcop[1] = AddStaticVehicle(411,1541.9409,-1634.3010,13.2775,89.4380,0,0); //
    new sirena = CreateObject(19420, 0, 0, 0, 0, 0, 0);
    AttachObjectToVehicle(sirena, infcop[1], 0.000000, 0.000000, 0.869999, 0.000000, 0.000000, 0.000000); //Object Model: 19620

Am urmat tutorilaul acesta : 

 

Edited by Yamato
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Asa trebuie sa fie

new sirena; si vezi ca daca ai doar o masina infcop baga pentru inceput foloseste infcop[0] dar la new infcop[1];

sirena = CreateObject(19620,-2597.0762,-2638.4270,-5.3536,0.0000, 0.0000, 0.0000);
AttachObjectToVehicle(sirena, infcop[1], 0.000000, 0.000000, 0.739999, 0.000000, 0.000000, 0.000000); //Object Model: 19620 |

Edited by DanielMayson
  • Upvote 1

Script Developer at Gta-Onyx.com

Creatiile mele:

Gamemode: Gta-Onyx #Build 10.5b

Gamemode: Country-Life v10 Final

Gamemode: Dream-Times v3.3.4 Final

Gamemode: Cartierul V1 (Curand)

AntiCheat Shock Final

Link to comment
Share on other sites

  • 0
1 minute ago, DanielMayson said:

Asa trebuie sa fie

new sirena; si vezi ca daca ai o masina infcop baga pentru inceput infcop[0] dar la new infcop[1];

sirena = CreateObject(19620,-2597.0762,-2638.4270,-5.3536,0.0000, 0.0000, 0.0000);
AttachObjectToVehicle(sirena, infcop[1], 0.000000, 0.000000, 0.739999, 0.000000, 0.000000, 0.000000); //Object Model: 19620 |

nu te-am inteles cu infcop , la ce te referi 

Link to comment
Share on other sites

  • 0
Chiar acum, Yamato a spus:

nu te-am inteles cu infcop , la ce te referi 

Cate infernusuri cu sirene vrei sa faci?

  • Upvote 1

Script Developer at Gta-Onyx.com

Creatiile mele:

Gamemode: Gta-Onyx #Build 10.5b

Gamemode: Country-Life v10 Final

Gamemode: Dream-Times v3.3.4 Final

Gamemode: Cartierul V1 (Curand)

AntiCheat Shock Final

Link to comment
Share on other sites

  • 0

O sa las aici problema, poate pe viitor o s-o vada si altii.

Aici

new infcop[1] = AddStaticVehicle(411,1541.9409,-1634.3010,13.2775,89.4380,0,0); //

Nu poti sa faci

new infcop[1]

pentru ca tu initalizezi un vector de 1. Daca vrei s-o rezolvi poti sa faci

new infcop = AddStaticVehicle(411,1541.9409,-1634.3010,13.2775,89.4380,0,0); //

sau

new infcop[1] = { INVALID_VEHICLE_ID };
infcop[0] = AddStaticVehicle(411,1541.9409,-1634.3010,13.2775,89.4380,0,0);

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.