![]() |
Strings, Arrays and Problems..
Hi,
so i got a DB NPC set flags to NPC Code: then i used req_player is a player object reqq_player is set to projectigi means reqq_player="projectigi"; NPC Code: 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 |
array = {1,2,2390};
array[0] == 1 array[1] == 2 array[3] == 2390 Or if you want to use a string list, use quotes |
well they should be booleans
and as i posted i set it like this rights_projectigi={1,1,0,1,1}; then gave it with this to clientside with(findnpc("Foobar")){ req_player.clientr.loadrights = this.("rights_"@reqq_player); } but on clientside player.chat=clientr.loadrights[0]; it says {1 |
this.(@"rights_" @ reqq_player)
|
still {1 :(
clientr.loadrights={1,1,1,1,1} <- from /open projectigi |
Is your client Graal2?
|
no its V4
|
If I remember correctly, you have to use the old format for arrays when you're dealing with flags in DB-NPCs and Player Attributes (if editing from RC/NC). By the looks of it you're trying to use the new format.
|
old format? new format? huh?
|
1,1,1,1,1 instead of {1,1,1,1,1}
|
Quote:
1,1,1,1,1 is a string array, while {1,1,1,1,1} is an array. |
Quote:
1,1,1,1,1 and not: {1,1,1,1,1} Don't ask me why. It just is :frown:. |
Quote:
Edit: Wait a minute...It doesn't matter how it looks, since you can't set the way it shows up in the flags of dbnpcs. :\ |
| All times are GMT +2. The time now is 06:21 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.