Jump to content
  • 0

Initialization data exceeds declared size


NeO

Question

Salut. Am ?i eu urm?toarele erori:

[pawn]D:\cc\sx\filterscripts\teles.pwn(20) : error 018: initialization data exceeds declared size

D:\cc\sx\filterscripts\teles.pwn(26) : error 018: initialization data exceeds declared size

D:\cc\sx\filterscripts\teles.pwn(64) : error 032: array index out of bounds (variable "WBWCAR")

D:\cc\sx\filterscripts\teles.pwn(72) : error 032: array index out of bounds (variable "WBWNOCAR")[/pawn]

Linia 20

new Float:WBWNOCAR[][3] =

{

// Positions, (X, Y, Z and Facing Angle)

«linia 20»[/color]{575.0173,-2558.7581,6.8824,186.3621},

{588.9304,-2558.2075,7.0464,178.2153}

};

Linia 26

new Float:WBWCAR[][3] =

{

// Positions, (X, Y, Z and Facing Angle)

«linia 26»[/color]{587.2133,-2548.6904,6.6094,179.3112},

{574.7921,-2547.6658,6.6095,184.2920}

};

Linia 64

new rand = random(sizeof(WBWCAR));

// SetPlayerPos to the random spawn data

SetPlayerPos(playerid, WBWCAR[rand][0], WBWCAR[rand][1],WBWCAR[rand][2]);

// SetPlayerFacingAngle to the random facing angle data

«linia 64»[/color]SetPlayerFacingAngle(playerid, WBWCAR[rand][3]);

Linia 72

new rand = random(sizeof(WBWNOCAR));

// SetPlayerPos to the random spawn data

SetPlayerPos(playerid, WBWNOCAR[rand][0], WBWNOCAR[rand][1],WBWNOCAR[rand][2]);

// SetPlayerFacingAngle to the random facing angle data

«linia 72»[/color]SetPlayerFacingAngle(playerid,WBWNOCAR[rand][3]);

Am f?cut ca aici http://wiki.sa-mp.com/wiki/Random

qdbjz10.png

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

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.