29.01.2011, 15:57
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:
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:
I hope this helps with your question!
pawn Код:
new Float:WeedX[MAX_PLAYERS], Float:WeedY[MAX_PLAYERS], Float:WeedZ[MAX_PLAYERS];
pawn Код:
GetPlayerPos(playerid, WeedX[playerid], WeedY[playerid], WeedZ[playerid]);