Will that function work?
#1

Hi I don't know if it will work:

PHP код:
stock GetPlayerTeamm(playerid)
{
    return 
PlayerInfo[playerid][pTeam];

Reply
#2

Try it?

You should use a macro though:

#define GetPlayerTeam(%0) PlayerInfo[%0][pTeam]
Reply
#3

This stock will return the value of PlayerInfo[playerid][pTeam];
So, if you do
pawn Код:
printf("Team value of playerid %d is %d",playerid,GetPlayerTeam(playerid));
It will print the value of PlayerInfo[playerid][pTeam];
Reply
#4

Yes, will work.

But use PlayerInfo[playerid][pTeam] directly is better.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)