View Single Post
  #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