PlayerInfo guide/tut?
#6

Код:
enum pInfo
{
	pSQLId,
	pName[24],
    pAssHole
}

new PlayerInfo[MAX_PLAYERS][pInfo];
1) enum arrays the list out for parsing

2) PlayerInfo is the Array Named

3) MAX_PLAYERS im sure you can figure out

4) pInfo is the arrayed Item

Example:

PlayerInfo[playerid][pAssHole] Holds a value so long as 'pAssHole' is defined in the 'enum'

This is commonly used with the value changes often like Players Money or Health.

if(PlayerInfo[playerid][pAssHole] > 0)
{
Kick(playerid);
}
else
{
SendClientMessage(playerid,COLOR_LIGHTRED,'Your Still an Asshole, We dont care WHAT the Server Says!');
Kick(playerid);
}
Reply


Messages In This Thread
PlayerInfo guide/tut? - by CrucixTM - 06.02.2010, 14:49
Re: PlayerInfo guide/tut? - by CrucixTM - 06.02.2010, 17:43
Re: PlayerInfo guide/tut? - by Backwardsman97 - 06.02.2010, 18:49
Re: PlayerInfo guide/tut? - by Deat_Itself - 06.02.2010, 18:52
Re: PlayerInfo guide/tut? - by ettans - 06.02.2010, 18:53
Re: PlayerInfo guide/tut? - by Bayler - 06.02.2010, 18:57
Re: PlayerInfo guide/tut? - by CrucixTM - 07.02.2010, 00:05

Forum Jump:


Users browsing this thread: 1 Guest(s)