INI_String issue
#1

Code:

pawn Code:
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
    INI_String("Rank",PlayerInfo[playerid][pRank],24);
    return 1;
}
I know it doesn't look right, but I appear to be following the syntax?

Errors:

Code:
error 001: expected token: ")", but found "["
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Syntax as seen here: https://sampforum.blast.hk/showthread.php?tid=175565

pawn Code:
INI_String("a", gA, len_of_gA);
Any help is appreciated.
Reply
#2

If anyone could help me, it'd be much appreciated.

(Hopefully I didn't bump too quickly - I don't want to come off as impatient. )
Reply
#3

You are well over the 24 hour limit with that bump, so you're good.

Sadly INI_String doesn't really support strings in 2d arrays because PAWN doesn't really support them. Put your strings in a separate variable, not in an enum.
Reply
#4

Is pRank string?
Reply
#5

@ColeMiner - okay, I'll try that - thanks.
@Rafael - should be, yep.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)