Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » I don't get why it don't page the player...
I don't get why it don't page the player... [message #468470] Wed, 06 June 2012 00:44 Go to next message
Distrbd21 is currently offline  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

http://dsgaming.us/distrbd21/Distrbd21%20siggy.png

Cookie Jar

Suicide
Re: I don't get why it don't page the player... [message #468471 is a reply to message #468470] Wed, 06 June 2012 00:47 Go to previous messageGo to next message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma: 0
Recruit
try "CMSGP %d 255,0,0 blabla "

Owner of kambot TT server

kambot.freeforums.org
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 Go to previous messageGo to next message
Distrbd21 is currently offline  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

http://dsgaming.us/distrbd21/Distrbd21%20siggy.png

Cookie Jar

Suicide
Re: I don't get why it don't page the player... [message #468478 is a reply to message #468470] Wed, 06 June 2012 03:10 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
I am fairly certain CMSGP *is* a page to a specific player.

CMSG - message to all
CMSGT - message to team
CMSGP - page to player


http://steamsignature.com/card/1/76561197975867233.png
Re: I don't get why it don't page the player... [message #468488 is a reply to message #468470] Wed, 06 June 2012 06:16 Go to previous messageGo to next message
BillieJoe67 is currently offline  BillieJoe67
Messages: 35
Registered: March 2012
Karma: 0
Recruit
Do you get the ramjet when you have enough money though?
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 Go to previous messageGo to next message
Distrbd21 is currently offline  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

http://dsgaming.us/distrbd21/Distrbd21%20siggy.png

Cookie Jar

Suicide
Re: I don't get why it don't page the player... [message #468510 is a reply to message #468470] Wed, 06 June 2012 13:48 Go to previous messageGo to next message
Xpert is currently offline  Xpert
Messages: 1588
Registered: December 2005
Location: New York City
Karma: 0
General (1 Star)
What's pID set to.

If you're getting the Ramjet Rifle, then obviously there's something wrong with pID.


http://i32.photobucket.com/albums/d42/XpertMaverick/xpertyankee.jpg

Creator of NetGuard, an IRC network regulator.
Developer of the CloudyServ 0.982-X project.
Developer of the CloudyServ Ren-X bot.

Part time streamer - https://twitch.tv/gg_wonder
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 Go to previous message
BillieJoe67 is currently offline  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

Previous Topic: anyone know where I can get the following textures?
Next Topic: Having problems with Attach_Script_Once
Goto Forum:
  


Current Time: Tue Nov 26 03:19:35 MST 2024

Total time taken to generate the page: 0.00783 seconds