![]() |
Simple Scripting Question(s)
In reference to server.string and client.string
How do I read them in a script? Do I use strequels or what, 'cause I can never get it to work. Like if (strequals(#s,client.string),1) { I'm sure I've tried that before and it didn't work. If anyone would be so kind as to give me a simple script, like - if (read the string=0) { show; } if (read the string=1) { hide; } if (read the string=2) { sleep .5; } Just something simple so I know what to do in the future please. Thanks |
server.strings can only be read clientside
client strings can be read both client/serverside so you would do In GS1 NPC Code: In GS2 NPC Code: |
Ah, and how would I read the string in GS2?
|
a way to check if client.foo equals bar is this
GS1 NPC Code: GS2 NPC Code: |
Quote:
serverr. strings are readable on the clientside, but are only writable on the serverside. |
Quote:
PHP Code:
|
Yes sorry, you are both correct x_x
Its been a long time since I used both things. |
| All times are GMT +2. The time now is 06:29 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.