![]() |
getnpc help
PHP Code:
|
The correct format is
NPC Code:with (findnpc(npc)) I don't use quotes when using it, but I don't think it will bother anything if there are quotes there. |
Quote:
Also: PHP Code:
|
Change
NPC Code:this.accept in the with() statement to NPC Code:thiso.accept You're trying to check a variable that does not exist, considering you just set it in the Police-DB npc. |
also, you should probably be using findNPC("Police-DB")
|
^-- was mentioned above.
Do you use findnpc like findplayer? temp = findnpc("Police-DB"); temp.test = "blah"; or something? *Edit* Haha, I didn't know I revived a dead thread lol. I don't look @ dates ;O *Edit* |
Quote:
temp.blah = findNPC("Police-DB"); temp.blah.test = "WEeEeeEe"; would set this.test inside the Police-DB NPC. |
You could also do
Police-DB.this.test = "Lal"; which would also set it. |
Quote:
Referencing is best. n = findnpc("Police-DB); if (n.admins.index(player.account) >= 0) { this.accept = 1; } |
Ah, I didn't that. Thanks :p
If anything, I use with(findnpc()) { |
Ugh, for some reason, I can't get it to read data:
temp.test = findnpc("Blah"); player.chat = temp.test.test; |
| All times are GMT +2. The time now is 11:45 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.