![]() |
Switch needed for triggerserver?
Do I need a switch command for triggerserver?
I tried to check the command via if-funktion, but that didn't work, can someone tell me why? PHP Code:
|
Switch docu: http://forums.graalonline.com/forums...ad.php?t=76294
A switch is just a glorified stack of if statements, at a quick glance I can't really see anything wrong unless you're putting this in a level npc and not a weapon. |
Your code looks correct. Try adding echoes to it to see if the trigger is being received.
|
to start with,
PHP Code:
edit: 2nd, there's a space after //#CLIENTSIDE, remove that and the trigger will work. 3rd, there's no reason to have "&& player.account != NULL" since it's not possible to have no account and be a player chatting "/summon" ! |
to 1st: useless, agreed
to 2nd: It works without space, but why? o.o' :confused: to 3rd: useless, agreed |
Quote:
Quote:
Quote:
|
| All times are GMT +2. The time now is 03:23 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.