Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Databases: clientside > serverside (https://forums.graalonline.com/forums/showthread.php?t=69040)

xXziroXx 09-29-2006 07:13 AM

Databases: clientside > serverside
 
How can I transfer data from the clientsided part in a db to the serversided part?

Ive tried setting server strings (didnt work), trigger actions, set flags without lead... I dont think I did anything wrong, but, please tell me how you would do it.

KuJi 09-29-2006 07:20 AM

client -> server = triggeraction(x, y, "ACTION", PARAMS);

-> Should work w/ a setshape <-

ApothiX 09-29-2006 02:30 PM

this.trigger() probably works aswell.

xXziroXx 09-29-2006 03:04 PM

The thing is, I tried both of them and also had another person look at the script to spot any errors, and none of us could..

On the clientsided part, its a showcharacter(); - so I doubt setshape is needed?

ZeroTrack 09-29-2006 06:05 PM

save[0] ... save[9]

example
PHP Code:

function onCreated(){
  if(
save[0] == 1) echo("Debug: String was saved");
}
//#CLIENTSIDE
function onCreated() save[0] = 1


KuJi 09-29-2006 08:57 PM

Quote:

Originally Posted by ZeroTrack (Post 1223721)
save[0] ... save[9]

example
PHP Code:

function onCreated(){
  if(
save[0] == 1) echo("Debug: String was saved");
}
//#CLIENTSIDE
function onCreated() save[0] = 1


Save never works for me =(

ZeroTrack 09-29-2006 09:55 PM

Maybe your using it incorrectly? Show me how you'd use it and i'll see if anything is wrong.

xXziroXx 09-30-2006 09:29 PM

save's can only be set serversided, and I want to send information FROM clientside to serverside.

ZeroTrack 10-01-2006 02:11 AM

Negitive , i've used save clientside many times.

xXziroXx 10-01-2006 02:48 AM

Well, Maloria Dev's NPC server was.. old and outdated, thats why nothing I tried worked. Now I dont even need to send the data from clientside to serverside, because what I was trying to do works serverside.


All times are GMT +2. The time now is 05:24 PM.

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