| I don't get why it don't page the player... [message #468470] | 
			Wed, 06 June 2012 00:44   | 
		 
		
			
				
				
				  | 
					
						  
						Distrbd21
						 Messages: 743 Registered: September 2008 
						
	Karma: 0
 
					 | 
					Colonel  | 
					 
  | 
		 
		 
	 | 
 
	
		I've looked at the examples witch say to use InputConsole, but the I get an error InputConsole is a nil value. 
 
So I changed it to Console_Input, and it give's no errors, but it doesn't page me when I don't have enough money, even when I do it still doesn't page me saying I bought it. 
if Message == "!ram" then
		if (Get_Money(pID) < 700) then
			Console_Input("ppage %d You need 700 credits", pID)
		else
			Set_Money(pID, Get_Money(pID)-700)
			Grant_Powerup(Get_GameObj(pID), "POW_RamjetRifle_Player")
			Console_Input("ppage %d You received a RamjetRifle!", pID)
		end
end   
		
		
 
 Live Your Life Not Some one Else's.| Sharing Is Caring  
 
Cookie Jar<glome> Who stole the cookie from the cookie jar?! 
<content> glome stole the cookie from the cookie jar! 
<glome> Who me?! 
<content> Yes you! 
<glome> Couldn't be! 
<content> Then WHO?!! 
<glome> Woody stole the cookie from the cookie jar! 
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch   
Suicide<TB>  I was depressed last night so I called the Suicide Life Line. 
<TB>  I reached a call center in Pakistan. 
<TB>  I told them I was suicidal. 
<TB>  They got all excited and asked if I could drive a truck  
		
 |  
	| 
		
	 | 
 
 
 | 
	| 
		
 | 
	
		
		
			| Re: I don't get why it don't page the player... [message #468472 is a reply to message #468471] | 
			Wed, 06 June 2012 00:54    | 
		 
		
			
				
				
				  | 
					
						  
						Distrbd21
						 Messages: 743 Registered: September 2008 
						
	Karma: 0
 
					 | 
					Colonel  | 
					 
  | 
		 
		 
	 | 
 
	
		| robbyke wrote on Wed, 06 June 2012 02:47 |   try "CMSGP %d 255,0,0 blabla "
  |  
  
 
I can get that to work But I want it to page the player.
		
		
 
 Live Your Life Not Some one Else's.| Sharing Is Caring  
 
Cookie Jar<glome> Who stole the cookie from the cookie jar?! 
<content> glome stole the cookie from the cookie jar! 
<glome> Who me?! 
<content> Yes you! 
<glome> Couldn't be! 
<content> Then WHO?!! 
<glome> Woody stole the cookie from the cookie jar! 
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch   
Suicide<TB>  I was depressed last night so I called the Suicide Life Line. 
<TB>  I reached a call center in Pakistan. 
<TB>  I told them I was suicidal. 
<TB>  They got all excited and asked if I could drive a truck  
		
 |  
	| 
		
	 | 
 
 
 | 
	| 
		
 | 
	| 
		
 | 
	
		
		
			| Re: I don't get why it don't page the player... [message #468495 is a reply to message #468470] | 
			Wed, 06 June 2012 09:52    | 
		 
		
			
				
				
				  | 
					
						  
						Distrbd21
						 Messages: 743 Registered: September 2008 
						
	Karma: 0
 
					 | 
					Colonel  | 
					 
  | 
		 
		 
	 | 
 
	
		I tried cmsgp. 
 
I do get the ram if I have them money. 
 
The point is I want n00bs to know what there getting and not say hey why did you get that and I didn't.
		
		
 
 Live Your Life Not Some one Else's.| Sharing Is Caring  
 
Cookie Jar<glome> Who stole the cookie from the cookie jar?! 
<content> glome stole the cookie from the cookie jar! 
<glome> Who me?! 
<content> Yes you! 
<glome> Couldn't be! 
<content> Then WHO?!! 
<glome> Woody stole the cookie from the cookie jar! 
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch   
Suicide<TB>  I was depressed last night so I called the Suicide Life Line. 
<TB>  I reached a call center in Pakistan. 
<TB>  I told them I was suicidal. 
<TB>  They got all excited and asked if I could drive a truck  
		
 |  
	| 
		
	 | 
 
 
 | 
	| 
		
 | 
	
		
		
			| Re: I don't get why it don't page the player... [message #468536 is a reply to message #468470] | 
			Thu, 07 June 2012 07:13   | 
		 
		
			
				
				
				
					
						  
						BillieJoe67
						 Messages: 35 Registered: March 2012 
						
	Karma: 0
 
					 | 
					Recruit  | 
					 | 
		 
		 
	 | 
 
	
		luatt.lua: 
function InputConsole(...)
        Console_Input(string.format(unpack(arg)))
end 
 
At the top of your script put: 
dofile("LuaPlugins/LuaTT/LuaTT.lua") 
 
Not sure, but Console_Input for luatt probably doesn't format the string for you, so either do that first, then put the formatted string into Console_Input, or include luatt as suggested, then use InputConsole() 
 
Also, use cmsgp if the client's scripts support it, the blue of page is pretty awful to read on a lot of maps, and a nice green message or whatever stands out more than dark blue.
		
		
		[Updated on: Thu, 07 June 2012 07:14] Report message to a moderator  
 |  
	| 
		
	 | 
 
 
 |