SA-MP Forums Archive
error 028: invalid subscript (not an array or too many subscripts): "SpawnPos" - 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: error 028: invalid subscript (not an array or too many subscripts): "SpawnPos" (/showthread.php?tid=416550)



error 028: invalid subscript (not an array or too many subscripts): "SpawnPos" - newbienoob - 17.02.2013

pawn Код:
enum aaa
{
    //moar,
    Float:SpawnPos[4]
    //moar
};

...

    INI_WriteFloat(file,"SpawnX",pInfo[playerid][SpawnPos[0]]);
    INI_WriteFloat(file,"SpawnY",pInfo[playerid][SpawnPos[1]]);
    INI_WriteFloat(file,"SpawnZ",pInfo[playerid][SpawnPos[2]]);
    INI_WriteFloat(file,"SpawnAngle",pInfo[playerid][SpawnPos[3]]);
//error 028: invalid subscript (not an array or too many subscripts): "SpawnPos"
How to fix it?


EDIT: Fixed..