Why the ban is not loading
#3

Quote:
Originally Posted by coool
Посмотреть сообщение
You have'nt saved it in any file.
Use the tutorial again.
As i mention above , i saved it successfully....

Код:
enum PlayerInfo
{
    Pass,
    Cash,
	Admin,
    Kills,
    Deaths,
    Score,
    Banned,
    OnDuty,
	Playing,
	Hidden,
	Spawned,
	MaxRcon,
	LastSpawnedCar,
	dCars[MAX_CAR_SPAWNS],
	dSpawnedCars,
   	LoginAttempts,
   	Spec,
   	Warns,
   	Frozen
}

forward SaveChar(playerid);
public SaveChar(playerid)
{
   	if(!IsPlayerConnected(playerid)) return 1;
	new INI:ACCOUNT = INI_Open(UserPath(playerid));
	INI_SetTag(ACCOUNT,"data");
	INI_WriteInt(ACCOUNT,"Level",pInfo[playerid][Admin]);
    INI_WriteInt(ACCOUNT,"Cash",GetPlayerCash(playerid));
	INI_WriteInt(ACCOUNT,"Kills",pInfo[playerid][Kills]);
	INI_WriteInt(ACCOUNT,"Deaths",pInfo[playerid][Deaths]);
	INI_WriteInt(ACCOUNT, "Score",GetPlayerScore(playerid));
    INI_WriteInt(ACCOUNT, "Banned",pInfo[playerid][Banned]);
  	INI_Close(ACCOUNT);
    new string[100];
	format(string, 100, "%s's character has saved successfully.", GetName(playerid));
	print(string);
    return 1;
}
Reply


Messages In This Thread
Why the ban is not loading - by 1fret - 28.12.2016, 03:28
Re: Why the ban is not loading - by coool - 28.12.2016, 04:16
Re: Why the ban is not loading - by 1fret - 28.12.2016, 05:10
Re: Why the ban is not loading - by coool - 28.12.2016, 05:16
Re: Why the ban is not loading - by RedRex - 28.12.2016, 07:04
Re: Why the ban is not loading - by 1fret - 28.12.2016, 12:38

Forum Jump:


Users browsing this thread: 2 Guest(s)