![]() |
Join Event
PHP Code:
i do have the rest of the script i just dont know why the setlevel2 doesnt work x.x i changed it to player.level and etc. and still doesnt work but works when i change the first thing to "haven-osl.nw" why doesnt it work with this.(serverr.event@"_event")[0]. |
Isn't that from Doomsday? Anyhow- we'd generally need to see the full code, as far as I can see it should work (the setlevel2).
|
done :D
|
Well, you're sending a trigger to the serverside which consists of the event name and the event hosters account. Setlevel2 consists of three params, being in this order
HTML Code:
setlevel2( "levelname.nw", positionx, positiony) |
actually i know what setlevel does and how to use it i just want to know why it doesn't work
|
setlevel2(this.(serverr.event@"_event")[0],this.(serverr.event@"_event")[1],this.(serverr.event@"_event")[2]);
Correct me if I'm wrong, but this.(serverr.event@"_event") is this.serverr.event_event? If so, you don't have a string by that name. |
doesnt matter strings dont read ()
|
You're calling this
triggerserver("gui", name, "Host", temp.event, player.account); Which is setting this serverr.event = params[1]; Which is setting basically the players first chat token... What you could do is make a list of events, ie HTML Code:
function onCreated() { HTML Code:
if(player.chat.starts(":hostevent ")){ |
Quote:
Also, sid.gottlieb, please stop posting full scripts for him to use. You evidently aren't helping him. |
Quote:
1. Adding _event the flags value? 2. Adding _event to the actual flag name? Either way, it's incorrect. Andy has the better idea, even though he should listen to Ibesu. |
Quote:
He's got most of the script, I'm giving him advice on how I'd do it and It's his choice to use it or not. I'm not giving him the full script, as you can see I was giving him an alternative method. |
that works nicely :D thanks but still has solved my question about the setlevel2 :/
i was asking why doesnt it doesnt work with the PHP Code:
and how would it work with PHP Code:
|
Change
PHP Code:
PHP Code:
|
with
PHP Code:
PHP Code:
|
xXZiroXx is correct- just copy&paste it to your code :)
|
All times are GMT +2. The time now is 12:03 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.