SA-MP Forums Archive
Loading vehicle plates from file - 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: Loading vehicle plates from file (/showthread.php?tid=309745)



Loading vehicle plates from file - Abreezy - 08.01.2012

Fixed.


Re: Loading vehicle plates from file - Psymetrix - 08.01.2012

Since it's text, INI_Int is wrong.

I guess you should replace INI_Int("Plate",VehicleInfo[i][vPlate]); with strmid(VehicleInfo[i][vPlate], value, 0, strlen(value));


Re: Loading vehicle plates from file - Abreezy - 08.01.2012

Didn't do anything, any other suggestions?


Re: Loading vehicle plates from file - Psymetrix - 08.01.2012

INI_String("Plate", VehicleInfo[i][vPlate], sizeof (VehicleInfo[i][vPlate]));

Had to do some research as I don't use Y_INI.


Re: Loading vehicle plates from file - Abreezy - 08.01.2012

C:\Users\Anthony\Desktop\r2\gamemodes\LARP.pwn(204 ) : error 001: expected token: ")", but found "["
C:\Users\Anthony\Desktop\r2\gamemodes\LARP.pwn(204 ) : warning 215: expression has no effect
C:\Users\Anthony\Desktop\r2\gamemodes\LARP.pwn(204 ) : error 001: expected token: ";", but found "]"
C:\Users\Anthony\Desktop\r2\gamemodes\LARP.pwn(204 ) : error 029: invalid expression, assumed zero
C:\Users\Anthony\Desktop\r2\gamemodes\LARP.pwn(204 ) : fatal error 107: too many error messages on one line

Just for that line ^^


Re: Loading vehicle plates from file - Psymetrix - 09.01.2012

I think it's caused by using sizeof there. Try INI_String("Plate", VehicleInfo[i][vPlate], 30);


Re: Loading vehicle plates from file - Abreezy - 09.01.2012

C:\Users\Anthony\Desktop\r2\gamemodes\LARP.pwn(201 ) : error 001: expected token: ")", but found "["
C:\Users\Anthony\Desktop\r2\gamemodes\LARP.pwn(201 ) : warning 215: expression has no effect
C:\Users\Anthony\Desktop\r2\gamemodes\LARP.pwn(201 ) : error 001: expected token: ";", but found "]"
C:\Users\Anthony\Desktop\r2\gamemodes\LARP.pwn(201 ) : error 029: invalid expression, assumed zero
C:\Users\Anthony\Desktop\r2\gamemodes\LARP.pwn(201 ) : fatal error 107: too many error messages on one line


same thing