![]() |
Script Error
What is wrong with this script
NPC Code: |
1) Use are checking parameters, not the players chat.
2) You are closing the playerchats event before it has a chance to execute anything. 3) There is an empty if (created) block. |
4. Your level has no file extension.
|
NPC Code: is that right now? |
No.
1. You are still closing the playerchats block ({} is an empty block). 2. In the startswith, you are checking against #a (thier account), whereas you mean to put #c (thier chat). 3. Paramater 2 (#p(2)) does not exist (in the context of this script), as it is set when a triggeration or other parameter sending function gets called. You need to use tokenize, then the #t() tokens here to get the second word of the players chat. |
4. You are missing a closing bracket.
|
Quote:
2. again... why does she even bother? 3. I have to disagree here. Tokenize is totally inefficient in this situation. It would be better to use #e(). |
Quote:
|
i am not a she good damnit every time i script it it says script error
|
I would seriously consider picking up a C book or something like that, alissalee. They have far better guides for syntax, and many of the syntax properties of C and C++ can be carried into GS. Trust me.
|
were can u give me a url Scriptagonist
|
Quote:
|
Quote:
C and C++ have alot more documentation that GScript, so you may find it easier to learn. Then, once you learn a sufficient amount, you'll be able to carry over the habits you form into GS. |
thxsman
|
| All times are GMT +2. The time now is 08:13 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.