Help me out with y_ini INI_String problem
#1

I have no clue on how to fix it. Anyone can help me out?

error line:
Code:
INI_String("Vehicle1Plate",PlayerInfo[playerid][pVehicle1Plate]);
error:
Code:
gamemodes/gamemode.pwn(133) : error 001: expected token: ")", but found "["
gamemodes/gamemode.pwn(133) : warning 215: expression has no effect
gamemodes/gamemode.pwn(133) : error 001: expected token: ";", but found "]"
gamemodes/gamemode.pwn(133) : error 029: invalid expression, assumed zero
gamemodes/gamemode.pwn(133) : fatal error 107: too many error messages on one line
Reply
#2

INI_String in y_ini:
pawn Code:
INI_String(name[], variable , length );
Put the length parameter of the pVehicle1Plate.
Reply
#3

pawn Code:
INI_String("Vehicle1Plate",PlayerInfo[playerid][pVehicle1Plate], 24);
Reply
#4

Quote:
Originally Posted by TheToretto
View Post
pawn Code:
INI_String("Vehicle1Plate",PlayerInfo[playerid][pVehicle1Plate], 24);
Still same error.
Reply
#5

Show me in the enumerator PlayerInfo, the line pVehicle1Plate please.
Reply
#6

Quote:
Originally Posted by TheToretto
View Post
Show me in the enumerator PlayerInfo, the line pVehicle1Plate please.
Just this:
Code:
    pVehicle1Plate,
Reply
#7

Replace it to:
pawn Code:
pVehicle1Plate[24],
then recompile
Reply
#8

Quote:
Originally Posted by TheToretto
View Post
Replace it to:
pawn Code:
pVehicle1Plate[24],
then recompile
Thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)