![]() |
For what its worth, params start at 0
Your npc script: params[0] = buymenu1 params[1] = 1000 params[2] = nameyouhad? Also, you can do: onActionClientside (cmd, price, itemname) and reference the parameters passed from serverside that way. Ex: echo(price); |
Quote:
Would anyone be able to explain tokenizing to me/link me to anything on it please? |
Quote:
Example: Player chats: "This is an example" PHP Code:
tokenscount (will yield 4) tokens[0] will reference the first token (the word "this"). Similarly, tokens[2] will reference the word "an". |
Quote:
|
Quote:
PHP Code:
Also, for the delimiters, you would basically be able to put for example a word such as "idigzy" and wherever that word occurs it splits it :o? |
Quote:
random tailor example for tokenize [better ways to do this...example for simplicity sake..]: PHP Code:
Quote:
some common delimiters: are , (commas), spaces . (periods) , and so on... there is a tokenize2 but I didn't want to include it. You can scripthelp it. Is there anything you are trying to do in specific, there might be a better approach? |
@Torankusu Thanks for all the help on that :). I'm not really trying to do anything in particular at the moment, I just thought I'd play around with it since I may use it in the future.
|
PHP Code:
Also PHP Code:
PHP Code:
and PHP Code:
PHP Code:
so: PHP Code:
|
@sssssssssss thanks for the response :)
|
I saw an error in my code. :x sry
PHP Code:
|
Would anyone be able to link me to some guides on databases/some good examples :)?
|
Quote:
http://wiki.graal.net/index.php/Crea...t/Using_SQLite |
Quote:
My advice would probably be to learn SQL/SQLite outside of Graal first. Using it in Graal will then be pretty easy. |
Quote:
|
:x
|
| All times are GMT +2. The time now is 07:37 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.