SA-MP Forums Archive
Float, Int in one array help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Float, Int in one array help (/showthread.php?tid=461731)



Float, Int in one array help - Black Wolf - 03.09.2013

pawn Код:
new Sweeping[2][4] =
{
    {0,float:217.8641,float:-351.2237,float:4.6098},
    {1,float:1556.0859,float:-1732.4009,float:13.3828}
};

And am doing this

    for(new i=0; i<=2; i++) {
    Sweeping[i][0] = CreateDynamicObject(854, Sweeping[i][1], Sweeping[i][2], Sweeping[i][3]-1, 0.00000, 0.00000, 0.00000); } //Under Gamememodeinit
Can anyone tell me why it isn't working? No objects are being created.


fixed!!!!!


Re: Float, Int in one array help - Borg - 03.09.2013

Use enum
pawn Код:
enum intfloat
{
Id, Float:x, Float:y, Float:z;
};
new myarray[SIZE][intfloat]=
And remove float: tag from declaration