Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-12-2006, 10:57 PM
projectigi projectigi is offline
Registered User
Join Date: Jan 2004
Posts: 403
projectigi is an unknown quantity at this point
Strings, Arrays and Problems..

Hi,

so i got a DB NPC set flags to
NPC Code:

rights_projectigi={1,1,0,1,1};


then i used
req_player is a player object
reqq_player is set to projectigi
means reqq_player="projectigi";
NPC Code:

with(findnpc("Foobar")){
req_player.clientr.loadrights = this.("rights_"@reqq_player);
}



so when i try to do player.chat=clientr.loadrights[0];
on clientside then my player says {1

thats the problem i need him to see it as 1
so the first thing of an array
but i cant just get the {} away because then when i send an array like this blah={1,1,0,1}; it woudl be blah=1,1,0,1; and that would mess up the triggeractions param order
Reply With Quote
 


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 09:11 AM.


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