PlayerInfo guide/tut?
#1

Hey, I can't seem to find any tutorial or guide on PlayerInfo scripting?

Anyone who can enlighten me on the use of this? I wanna use it, but not sure how.
Reply
#2

Someone use 2 minutes and explain to me how it works? Dear god. Bump.
Reply
#3

What do you mean PlayerInfo? Like this?

pawn Код:
enum PInfo
{
   kills,
   deaths,
   etc
}

new PlayerInfo[MAX_PLAYERS][PInfo];
Reply
#4

https://sampwiki.blast.hk/wiki/Creating_...n_FilterScript
Reply
#5

https://sampwiki.blast.hk/wiki/Advanced_Structures
https://sampwiki.blast.hk/wiki/PAWN_tutorial

Arrays and enums.
Reply
#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
#7

In a weird sense, that helped. Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)