![]() |
help with my script
PHP Code:
but when i get the money it goes to the number of rupees whats wrong with it? then goes back to my origional so example if ifire it it changes my rupees to 3 1 second later it changes back to 0 |
player.rupees can only truly be edited on the serverside like so.
PHP Code:
PHP Code:
|
online i own a server
|
okay iv got another problem now
function onActionServerSide() { if (params[0] == "caughtfish") { player.rupees += int(random(1,5)); } } //#CLIENTSIDE if (weaponfired && onwater(players[0].x,players[0].y)){ setani fishing,fishrod2.png; freezeplayer 1; setplayerprop #c,I got a #int pound fish ; triggerserver("gui", name, "caughtfish"); sleep 2; } it says i caught a #int fish not the int number how would i do that |
Please read these articles then :) The scripting guides, and the GS1 to GS2 should definitely be read.
http://graal.net/index.php/Creation/Dev/GScript They should be quite helpful. Edit: You need to have a variable that holds how big the fish was first. Then you can do: PHP Code:
|
thank you very much :)
|
| All times are GMT +2. The time now is 10:17 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.