11.12.2017, 03:09
Quote:
There you go.
Код:
enum pInfo { pScore } new PlayerInfo[ MAX_PLAYERS ][ pInfo ]; stock GetName(playerid) { new name[ MAX_PLAYER_NAME+1 ]; GetPlayerName(playerid, name, sizeof( name )); return name; } |
PHP код:
#define FILTERSCRIPT
#include <a_samp>
#include <dini>
new file[256];
enum pInfo
{
pScore
}
new PlayerInfo[ MAX_PLAYERS ][ pInfo ];
stock GetName(playerid)
{
new name[ MAX_PLAYER_NAME+1 ];
GetPlayerName(playerid, name, sizeof( name ));
return name;
}
public OnPlayerDisconnect(playerid, reason)
{
dini_IntSet( file, "Score", PlayerInfo[ playerid ][ pScore ]);
return 1;
}