Advertisement
Guest User

Untitled

a guest
Mar 8th, 2015
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.86 KB | None | 0 0
  1. class HoloHead{
  2.     public $playerHolo = array(
  3.         '1' => array(
  4.             'type' => 'player',
  5.             'title' => '1 - Test Player',
  6.             'lines' => 2,
  7.             'stayTime' => 5,
  8.             'updateIn' => 3600,
  9.             'error' => 0,
  10.             'holoId' => 4,
  11.             'sortId' => 4,
  12.         ),
  13.         '2' => array(
  14.             'type' => 'player',
  15.             'title' => '2 - Test Player',
  16.             'lines' => 2,
  17.             'stayTime' => 5,
  18.             'updateIn' => 3600,
  19.             'error' => 0,
  20.             'holoId' => 5,
  21.             'sortId' => 5,
  22.         ),
  23.         '3' => array(
  24.             'type' => 'player',
  25.             'title' => '3 - Test Player',
  26.             'lines' => 2,
  27.             'stayTime' => 5,
  28.             'updateIn' => 3600,
  29.             'error' => 0,
  30.             'holoId' => 6,
  31.             'sortId' => 6,
  32.         ),
  33.     );
  34.  
  35.     public function index($response, $gamemode){
  36.  
  37.         $playerHolo = $this->playerHolo;
  38.  
  39.         if($gamemode === 'playerHolo'){
  40.             var_dump(array_push($playerHolo, 'player' => 'UsernameHere')); //invalid syntax (the =>)
  41.         }
  42.     }
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement