Loading vehicle plates from file
#1

Fixed.
Reply
#2

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));
Reply
#3

Didn't do anything, any other suggestions?
Reply
#4

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

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

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 ^^
Reply
#6

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)