Saving name - 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)
+--- Thread: Saving name (
/showthread.php?tid=584319)
Saving name -
Lajko1 - 03.08.2015
Guys how can I save player's name to fine? I have this:
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
GetName(playerid) = PlayerInfo[playerid][pName];
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteString(File, "Name", PlayerInfo[playerid][pName]);
INI_Close(File);
return 1;
}
It just doesn't save player's name to file :/
AW: Saving name -
Kaliber - 03.08.2015
Quote:
GetName(playerid) = PlayerInfo[playerid][pName];
|
This is bullshit
Make this:
PHP код:
GetPlayerName(playerid,PlayerInfo[playerid][pName],MAX_PLAYER_NAME);
Re: Saving name -
Lajko1 - 03.08.2015
Waa it's working hah

Idk what was so wrong at my code that made it to not work properly.
Rep+ for u ^^