View Single Post
  #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