SFCRRPG Money bug
#1

REMOVED
Reply
#2

REMOVED
Reply
#3

How about this?
Quote:

#include <a_samp>
#include <Dini>

forward LoadPlayerMoney(playerid);
new pname[30];
new PlayerMoney[MAX_PLAYERS];
#define COLOR_RED 0xFA2B25AA

public OnGameModeExit()
{
return 1;
}

public OnPlayerConnect(playerid)
{
if(!IsPlayerNPC(playerid))
{
GetPlayerName(playerid,pname,30);
if(!dini_Exists(pname))
dini_Create(pname);
else if(dini_Exists(pname))
{
PlayerMoney[playerid] = dini_Int(pname,"PlayerMoney");
}

LoadPlayerMoney(playerid);
return 1;
}
return 1;
}

public LoadPlayerMoney(playerid)
{
if(!IsPlayerNPC(playerid)){ GivePlayerMoney(playerid,PlayerMoney[playerid]); }
}


public OnPlayerDisconnect(playerid, reason)
{
if(!IsPlayerNPC(playerid))
{
new Pname[24];
GetPlayerName(playerid, Pname, 24);
dini_IntSet("Skins.ini", Pname, GetPlayerSkin(playerid));
}
return 1;

Reply
#4

Quote:
Originally Posted by MasterReturnz
Посмотреть сообщение
How about this?
O,o ofc no will never be like this,
Reply
#5

Quote:
Originally Posted by MoHaNeD14
Посмотреть сообщение
O,o ofc no will never be like this,
Search On ****** Man!
SAve Money And Score
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)