Saving name
#1

Guys how can I save player's name to fine? I have this:

pawn Код:
enum pInfo
{
    pName[24]
}
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 :/
Reply
#2

Quote:

GetName(playerid) = PlayerInfo[playerid][pName];

This is bullshit

Make this:

PHP код:
GetPlayerName(playerid,PlayerInfo[playerid][pName],MAX_PLAYER_NAME); 
Reply
#3

Waa it's working hah Idk what was so wrong at my code that made it to not work properly.

Rep+ for u ^^
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)