|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
[appleeaters]accessing player[]
i cant seem to figure out how to get the player cordinates. I tried this:
$playerx=$game["player"][0]; $echo($playerx); and i echos nothing im not sure why this wouldnt work but im not all that familiar with arrays in classes. Thanks for any help. |
|
#2
|
|||
|
|||
|
[appleeaters]RE: accessing player[]
you have a $ before echo.
|
|
#3
|
|||
|
|||
|
[appleeaters]RE: accessing player[]
oops sry i was in a rush and just quickly typed the code into the fourm
but its not really like that in my code this is the exact code i put into the file: |
|
#4
|
|||
|
|||
|
[appleeaters]RE: accessing player[]
Did you try using var_dump($game) to make sure that it is set properly in your function? If it isn't there, are you trying to access it as a global.
|
|
#5
|
|||
|
|||
|
[appleeaters]RE: accessing player[]
Thanks a lot, that helped a whole lot in trying to find my problem ;)
|
![]() |
| Viewing: Codewalkers Forums > PHP Contests > Older Contests > [appleeaters]accessing player[] |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|