Have a question. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Have a question. (
/showthread.php?tid=164783)
Have a question. -
typedef - 01.08.2010
In the enum I have this
enum pInfo
{
pWord[128],
...
...
};
new PlayerInfo[MAX_PLAYERS][pInfo];
anyhow...
I am trying to load from the dini file into pWord
PlayerInfo[playerid][pWord][] = dini_Get(filename, "pWord");
and it doesn't work I also tryed
PlayerInfo[playerid][pWord] = dini_Get(filename, "pWord");
Anyone know how to do this shit?
Re: Have a question. -
[TDM]Relax - 01.08.2010
why u use array for pWorld? It is unnecessary.
Re: Have a question. -
typedef - 01.08.2010
Its a password, and a character array
Re: Have a question. -
[TDM]Relax - 01.08.2010
oh, sry, I thought this virtual world.
Hm, PlayerInfo[playerid][pWord] = dini_Get(filename, "pWord");
it must be work, Password is in the file? Maybe there is no such file?
Re: Have a question. -
PotH3Ad - 02.08.2010
pawn Код:
format(PlayerInfo[playerid][pWord], 128, "%s", dini_Get(filename, "pWord"));