Posts: 292
Threads: 9
Joined: Oct 2011
Reputation:
0
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));
Posts: 560
Threads: 117
Joined: Jan 2011
Reputation:
0
Didn't do anything, any other suggestions?
Posts: 292
Threads: 9
Joined: Oct 2011
Reputation:
0
INI_String("Plate", VehicleInfo[i][vPlate], sizeof (VehicleInfo[i][vPlate]));
Had to do some research as I don't use Y_INI.
Posts: 560
Threads: 117
Joined: Jan 2011
Reputation:
0
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 ^^
Posts: 292
Threads: 9
Joined: Oct 2011
Reputation:
0
I think it's caused by using sizeof there. Try INI_String("Plate", VehicleInfo[i][vPlate], 30);
Posts: 560
Threads: 117
Joined: Jan 2011
Reputation:
0
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