Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 08-14-2012, 03:19 PM
clarke119 clarke119 is offline
Registered User
Join Date: May 2010
Posts: 23
clarke119 is on a distinguished road
Quote:
Originally Posted by cbk1994 View Post
Both of them contain pieces of what you're looking for. Where are you stuck? Post your code so far.
This is the involved parts - not the full script. This is the last attempt I made at trying to do this..

PHP Code:
function onActionServerside(){
 if(
params[0] == "rankchanger"){
    
temp.pl findplayerbycommunityname(params[1]);
    if (
pl != NULL){
        
rank pl.clientr.gangrank;
        
rights pl.clientr.gangrights;
 }
}
      else{
      
player.chat "Player not found.";
 }
}

//#CLIENTSIDE
function onCreated() {
 new 
GuiTextEditCtrl("account1") {
      
profile GuiBlueTextEditProfile;
      
height 20;
      
width 120;
      
70;
      
40;
    }
    new 
GuiTextEditCtrl("rank1") {
      
profile GuiBlueTextEditProfile;
      
height 20;
      
width 120;
      
70;
      
70;
    }
new 
GuiTextEditCtrl("rights1") {
      
profile GuiBlueTextEditProfile;
      
height 20;
      
width 30;
      
94;
      
96;
    }

function 
UpdateButton.onAction() {
 
temp.rank rank1.txt;
 
temp.rights rights1.txt;
  
triggerserver("gui",this.name,"rankchanger",account1.text,temp.rank,temp.rights);

__________________
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:52 AM.


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