Something wrong
#4

You are missing one variable. You put us[32] and 1 one variable.
PHP код:
CMD:vipset(playeridparams[]) 

    if (
PlayerInfo[playerid][pAdmin] == 5
    { 
    new 
Targetmissingvariable[32+EOS]; 
    if(!
sscanf(params"us[32]",Targetmissingvariable)) 
    { 
    if(!
IsPlayerConnected(Target)) 
    return 
SendClientMessage(playeridred"Player is not connected!"); 
    new 
tname[MAX_PLAYER_NAME]; 
    new 
pname[MAX_PLAYER_NAME]; 
    
GetPlayerName(Target,tname,sizeof(tname)); 
    
GetPlayerName(playerid,pname,sizeof(pname)); 
    if(
VipSet[playerid] == false
    { 
    
PlayerInfo[playerid][pVip] = 1
    
GameTextForPlayer(playerid"~W~VIP status ~g~added to the selected player"50005); 
    
VipSet[playerid] = true
    }else{ 
    
PlayerInfo[playerid][pVip] = 0
    
GameTextForPlayer(playerid"~W~VIP status ~r~removed to the selected player"50005); 
    
VipSet[playerid] = false
    } 
    } 
    else return 
SendClientMessage(playeridred"USAGE: /vipset <playerid>/<player name>"); 
    return 
true
    } 
    else return 
0

Reply


Messages In This Thread
Something wrong - by NealPeteros - 29.09.2016, 12:53
Re: Something wrong - by NealPeteros - 29.09.2016, 12:55
Re: Something wrong - by luke49 - 29.09.2016, 13:12
Re: Something wrong - by Dayrion - 29.09.2016, 13:44
Re: Something wrong - by Threshold - 29.09.2016, 13:52
Re: Something wrong - by NealPeteros - 29.09.2016, 15:28
Re: Something wrong - by NealPeteros - 29.09.2016, 15:30

Forum Jump:


Users browsing this thread: 3 Guest(s)