PlayerPos in another command...
#2

I don't know why you would want to make it in the local scope, as that only makes your problem worse! You need to have a global scope variable for each players position in order for this to work, you would initialize it like so:

pawn Код:
new Float:WeedX[MAX_PLAYERS], Float:WeedY[MAX_PLAYERS], Float:WeedZ[MAX_PLAYERS];
Then when you're using it in a function for a specific player you would simply insert the playerid as the cell of the array, like so:

pawn Код:
GetPlayerPos(playerid, WeedX[playerid], WeedY[playerid], WeedZ[playerid]);
I hope this helps with your question!
Reply


Messages In This Thread
PlayerPos in another command... - by Ihsan-Cingisiz - 29.01.2011, 11:06
Re: PlayerPos in another command... - by JaTochNietDan - 29.01.2011, 15:57

Forum Jump:


Users browsing this thread: 1 Guest(s)