![]() |
need help
im working on a money system and i'm trying to figure out how to change the value of the money variables. heres a part of the script:
NPC Code: when i press n, it changes dollars to "strtofloat(client.dollars)+=1" instead of raising it by 1. can someone tell me what i'm doing wrong? |
Quote:
NPC Code: |
Make it clientr.dollers so they can't be edited.
|
Quote:
|
NPC Code: |
Quote:
|
Make the keypress trigger that code serverside so that it can edit the clientr.var
|
Quote:
|
Quote:
|
KeyPressed is called every .05.
Sending triggers to the serverside that often is painful. I found that out when I typo'd an NPC on Babylon. :[ But then again, their server's a piece of crap. |
| All times are GMT +2. The time now is 07:31 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.