SA-MP Forums Archive
Please, delete. - 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: Please, delete. (/showthread.php?tid=403199)



SASD vehicle bug - James Bob - 29.12.2012

Код:
C:\Users\****\Desktop\SA-MP gamemodes\Infinity RP\gamemodes\IRP.pwn(18862) : error 032: array index out of bounds (variable "SASDVehicles")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.

pawn Код:
SASDVehicles[96] = AddStaticVehicleEx(523,594.4690,-578.7919,-4.6777,0.7496,40,61, VEHICLE_RESPAWN); // SASDbike1

    for(new x;x<sizeof(SASDVehicles);x++)
    {
        format(string, sizeof(string), "XMT %d", SASDVehicles[x]);
        SetVehicleNumberPlate(SASDVehicles[x], string);
        SetVehicleToRespawn(SASDVehicles[x]);
    }



Re: Please, delete. - Faisal_khan - 29.12.2012

Show us the array.


Re: Please, delete. - James Bob - 29.12.2012

I've fixed it, don't worry.