View Single Post
  #17  
Old 08-15-2012, 12:44 AM
clarke119 clarke119 is offline
Registered User
Join Date: May 2010
Posts: 23
clarke119 is on a distinguished road
Quote:
Originally Posted by callimuc View Post
Just realized that part. You mixed this
PHP Code:
rank pl.clientr.gangrank;
rights pl.clientr.gangrights
it should be

PHP Code:
pl.clientr.gangrank params[2];
pl.clientr.gangrights params[3]; 
Also you should find the player with findPlayer(acc); rather than using findPlayerByCommunityname(acc); since not everyone got a communityname. In the end it should look like:
PHP Code:
function onActionServerside(){
  if(
params[0] == "rankchanger"){
    
temp.pl findPlayer(params[1]);
    if (
temp.pl != NULL){
      
pl.clientr.gangrank params[2];
      
pl.clientr.gangrights params[3];
    }
    else {
      
player.chat "Player not found.";
    }
  }

Excellent. Thank you very much for your help!
__________________
Reply With Quote