Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Flags and Variables: Troubles... (https://forums.graalonline.com/forums/showthread.php?t=57378)

fowlplay4 01-30-2005 06:49 AM

Flags and Variables: Troubles...
 
Hello ive been trying to make a basic event token system for online.
It works but when i reconnect it doesnt save the variable therefore the new string overwrites it as 0. Can you help me with my situation.


PHP Code:

// NPC made by Jerret

//#CLIENTSIDE
if (created||timeout) {
setstring client.stokens,#s(client.tokens);
showtext 1000,screenwidth-630,screenheight-330,Arial,bold,Event Tokens#v(tokens);
changeimgzoom 1000,0.8;
changeimgcolors 1000,0,255,0,1;
changeimgvis 1000,5;
setstring client.tokens,#v(tokens);
timeout=.1;



Lance 01-30-2005 07:33 AM

You need to be setting the string for tokens serverside.

You'll want to use a clientr.string (writable from serverside but viewable on clientside as well).

falco10291029 01-30-2005 08:44 AM

replace the variable with a string as well


All times are GMT +2. The time now is 04:10 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.