ERROR in
action number 1
of Create Event
for object o_oPlayer:
Error in code at line 1:
   icon=gms_other_get(player_id, "global.icon")
                     ^
at position 20: Unknown variable player_id
How Can I Fix It?
Replies (4)
	
		
			
				
					Last message on 12 Mar 2018
				
				
					
				
			
		 
		
		
		
	
		
			
				
					Size43
					
					(Administrator)
					
					on
					3 Mar 2018, 11:55:51
				
				
					
				
			 
		 
		
			The player_id variable is only set for other player objects. If you want the player ID of the player object, you should use gms_self_playerid()
		
		
	 
	
	
		
			
				
					Sustitos
					
					(Topicstarter)
					
					on
					3 Mar 2018, 22:20:30
				
				
					
				
			 
		 
		
			My Problem Now Is Fixed, I Was Have That In The Create Event. I've A Problem Is With The Highscores, 'cuz Now I've Recorded A Position With 10 Points, And Then When I Complete Another Level And Collides With The Object That Add The Scores Doesn't Found 'cuz I've Still 10... What I've To Do.??
		
		
	 
	
 
	
		
			
				
					Sustitos
					
					(Topicstarter)
					
					on
					3 Mar 2018, 22:20:30
				
				
					
				
			 
		 
		
			My Problem Now Is Fixed, I Was Have That In The Create Event. I've A Problem Is With The Highscores, 'cuz Now I've Recorded A Position With 10 Points, And Then When I Complete Another Level And Collides With The Object That Add The Scores Doesn't Found 'cuz I've Still 10... What I've To Do.??
		
		
	 
	
	
		
		
			My Problem Now Is Fixed, I Was Have That In The Create Event. I've A Problem Is With The Highscores, 'cuz Now I've Recorded A Position With 10 Points, And Then When I Complete Another Level And Collides With The Object That Add The Scores Doesn't Found 'cuz I've Still 10... What I've To Do.??