You can use [ code ] tags in your post so the code is all aligned neatly (which is quite important when it comes to Python).
Anonymous - Wed Jan 12, 2005 4:50 pm
Post subject:
k, fixed everything else, everytime i accomplish a command, i try another...
def c_say(cmd, params, p, targ):
chat.SendArenaMessage(p.arena, param+ " Got Pwnt By " +p.name )
if param+ == Chambahs:
chat.SendArenaMessage(p.arena, p.name+ "Does not Pwnt Chambahs, Chambahs pwns " +p.name)
cmd3 = add_command("saypwnt", c_say)
if, if param+ == Chambahs:
gives me an error of the ==, then what can i replace it with?
Smong - Wed Jan 12, 2005 5:07 pm
Post subject:
'param' or 'params', which ever magically works for you.
The + is used to join/merge/concatenate two strings (and probably some other data types in python as well).
Anonymous - Wed Jan 12, 2005 5:17 pm
Post subject:
now it says, 'param' is not defined...
also, why did you sign off of MSN, its more easier to talk to you lol
Anonymous - Wed Jan 12, 2005 7:14 pm
Post subject:
I resolved this over chat, I hope.
Chambahs in quotes like this "Chambahs".
param should actually be params (although Chambahs insisted it works ok as param+ in SendArenaMessage).