Syntax fixing help needed.

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

zablex
Senior Member
Posts: 135
Joined: August 8th, 2009, 8:25 pm
Title: Community Trash

Syntax fixing help needed.

Post by zablex »

I haz dumb errorz :|

now what i want is when some1 writes the activator-
* The player that writed the activation code gets the cheats activated message
* every1 gets a message with a my text.

anyway just have a look at teh jazz code.
call DisplayTimedTextToPlayer(p2p,0,0,10,"|c00A0FF01H|r|c00A6FF01a|r|c00ADFF01c|r|c00B3FF01k|r|c00B9FF01e|r|c00BFFF01d|r|c00C6FF01 |r|c00CCFF01b|r|c00D2FF01y|r|c00D8FF01 |r|c00DFFF01z|r|c00E5FF01a|r|c00EBFF01b|r|c00F1FF01l|r|c00F8FF01e|r|c00FEFF01x|r" )

call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,1,0,10"|c01FA2E2ET|r|c01F32C2Ch|r|c01EB2A2Ai|r|c01E42828s|r|c01DD2626 |r|c01D52424v|r|c01CE2222e|r|c01C72020r|r|c01BF1E1Es|r|c01B81C1Ci|r|c01B11A1Ao|r|c01A91818n|r|c01A21616 |r|c019B1414i|r|c01931212s|r|c018C1010 |r|c01850E0Eh|r|c017D0C0Ca|r|c01760A0Ac|r|c016F0808k|r|c01670606e|r|c01600404d|r"

call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,2,0,10"|c010062E4A|r|c01055EE5n|r|c010B5AE6d|r|c011056E7 |r|c011552E9m|r|c011A4EEAe|r|c01204AEBn|r|c012546ECt|r|c012A42ED |r|c01303EEEf|r|c01353AEFo|r|c013A36F0r|r|c014032F2 |r|c01452FF3T|r|c014A2BF4E|r|c014F27F5S|r|c015523F6T|r|c015A1FF7I|r|c015F1BF8N|r|c016517F9G|r|c016A13FB |r|c016F0FFCO|r|c01740BFDN|r|c017A07FEL|r|c017F03FFY|r"

call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,3,0,10"|c5DFFFFFFT|r|c60F5F5F5h|r|c63EBEBEBe|r|c66E2E2E2 |r|c68D8D8D8a|r|c6BCECECEc|r|c6EC4C4C4t|r|c71BABABAi|r|c74B1B1B1v|r|c77A7A7A7a|r|c799D9D9Dt|r|c7C939393o|r|c7F898989r|r|c827F7F7F |r|c85767676i|r|c886C6C6Cs|r|c8B626262 |r|c8D585858-|r|c904E4E4Ed|r|c93454545e|r|c963B3B3Ba|r|c99313131d|r|c9C272727p|r|c9E1D1D1Du|r|cA1141414n|r|cA40A0A0Ak|r|cA7000000*|r"


I added this lines after the message of activation in jj's cp ... the one that says "Cheats activated"
The problem is when i add everything and i start the map it throws me back to the main menu...
When i delete the 3 last lines (those DisplayTimedTextToForce lines) everything is ok again.

What i want from you is that you would help me by fixing the syntax or show me what i did wrong.

Sry for my bad english :/
Image
User avatar
UndeadxAssassin
Grammar King
Posts: 2115
Joined: June 22nd, 2008, 10:11 pm
Title: Worst human for 4eva
Location: Mostly USEast

Re: Syntax fixing help needed.

Post by UndeadxAssassin »

From what I understand, DisplayTimedTextToForce needs (force,length of time, message)
In your case, when you did this (I'm only using the first one for this example):

Spoiler:

Code: Select all

call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,1,0,10"|c01FA2E2ET|r|c01F32C2Ch|r|c01EB2A2Ai|r|c01E42828s|r|c01DD2626 |r|c01D52424v|r|c01CE2222e|r|c01C72020r|r|c01BF1E1Es|r|c01B81C1Ci|r|c01B11A1Ao|r|c01A91818n|r|c01A21616 |r|c019B1414i|r|c01931212s|r|c018C1010 |r|c01850E0Eh|r|c017D0C0Ca|r|c01760A0Ac|r|c016F0808k|r|c01670606e|r|c01600404d|r"


Since the third argument in here is the message, the quotes should come before the 0 in order for it to work. What I believe you're doing is basically copying what was already in JJ's CP that uses DisplayTimedTextToPlayer, which uses different arguments, so that's why it won't work. I hope I explained it well enough :S. Basically, change what you have to this:

Spoiler:

Code: Select all

call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10,"|c01FA2E2ET|r|c01F32C2Ch|r|c01EB2A2Ai|r|c01E42828s|r|c01DD2626 |r|c01D52424v|r|c01CE2222e|r|c01C72020r|r|c01BF1E1Es|r|c01B81C1Ci|r|c01B11A1Ao|r|c01A91818n|r|c01A21616 |r|c019B1414i|r|c01931212s|r|c018C1010 |r|c01850E0Eh|r|c017D0C0Ca|r|c01760A0Ac|r|c016F0808k|r|c01670606e|r|c01600404d|r")

call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10,"|c010062E4A|r|c01055EE5n|r|c010B5AE6d|r|c011056E7 |r|c011552E9m|r|c011A4EEAe|r|c01204AEBn|r|c012546ECt|r|c012A42ED |r|c01303EEEf|r|c01353AEFo|r|c013A36F0r|r|c014032F2 |r|c01452FF3T|r|c014A2BF4E|r|c014F27F5S|r|c015523F6T|r|c015A1FF7I|r|c015F1BF8N|r|c016517F9G|r|c016A13FB |r|c016F0FFCO|r|c01740BFDN|r|c017A07FEL|r|c017F03FFY|r")

call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10,"|c5DFFFFFFT|r|c60F5F5F5h|r|c63EBEBEBe|r|c66E2E2E2 |r|c68D8D8D8a|r|c6BCECECEc|r|c6EC4C4C4t|r|c71BABABAi|r|c74B1B1B1v|r|c77A7A7A7a|r|c799D9D9Dt|r|c7C939393o|r|c7F898989r|r|c827F7F7F |r|c85767676i|r|c886C6C6Cs|r|c8B626262 |r|c8D585858-|r|c904E4E4Ed|r|c93454545e|r|c963B3B3Ba|r|c99313131d|r|c9C272727p|r|c9E1D1D1Du|r|cA1141414n|r|cA40A0A0Ak|r|cA7000000*|r")


This is assuming you wanted it shown for 10 seconds. And I noticed you also forgot to close the parenthesis at the end.
(20:53:52) Bartimaeus: Thank you, Jen.
(20:53:56) Bartimaeus: Truly, you are wise.


(23:44:12) Bartimaeus: I was in pubic school until middle school...


Learn how to extract and read RAW Codes here!

Need help? Click here and ask your question!
zablex
Senior Member
Posts: 135
Joined: August 8th, 2009, 8:25 pm
Title: Community Trash

Re: Syntax fixing help needed.

Post by zablex »

Thank you.
Image