Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-17-2009, 08:43 PM
Gambet Gambet is offline
Registered User
Join Date: Oct 2003
Posts: 2,712
Gambet is on a distinguished road
Quote:
Originally Posted by Cubes View Post
So I should do it like this?
PHP Code:
triggerserver("gui""-loltest""flip", {1,2,3}); 
or like this

PHP Code:
temp.= {1,2,3}
triggerserver("gui""-loltest""flip"temp.i); 

Depends on the length of the array, if it really is just 3 numbers then save the extra line and just send the trigger using {1,2,3}, but if it's a rather large string array of some sort then it would be better to use a temp. var.
Reply With Quote
  #2  
Old 06-17-2009, 08:48 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Gambet View Post
Depends on the length of the array, if it really is just 3 numbers then save the extra line and just send the trigger using {1,2,3}, but if it's a rather large string array of some sort then it would be better to use a temp. var.
It's really personal preference. Some people always stick things in a variable, even if they only plan to use it once and could have inserted it there. Others always put it directly in the function.
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:18 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.