Gang cmd callback
#1

Yo guys again im askin for help;/

I know this problem i have to add command to OnPlayerCommandText callback but i wanted to ask how to make the line which has to be added to callbacks.I would be realy glad if you could tel me ;/

So thi is the cmd which i made:
PHP код:
 dcmd_ganghelp(playerid,params[])
{
    
#pragma unused params
    
if(IsSpawned[playerid] != 1)
    {
        
SendClientMessage(playerid,COLOR_WHITE,"{FF0000}[ERROR]: {FFFFFF}You must be alive and spawned in order to be able to use this command.");
        return 
1;
    }
    if(
IsKidnapped[playerid] == 1)
    {
        
SendClientMessage(playerid,COLOR_WHITE,"{FF0000}[ERROR]: {FFFFFF}You are kidnapped. You cannot use this command.");
        return 
1;
    }
    if(
IsFrozen[playerid] == 1)
    {
        
SendClientMessage(playerid,COLOR_WHITE,"{FF0000}[ERROR]: {FFFFFF}You have been frozen by a Server Administrator. You cannot use this command.");
        return 
1;
    }
    
ShowPlayerDialog(playerid,DIALOG_COMMANDS,DIALOG_STYLE_MSGBOX,"Gang Commands","{FFFFFF}/gangs /acceptgang /loadganginfo /g /adjustgang /giverank /gkick /ginvite /gquit /gclothes /gmembers /sendgangmessage /savegang","Ok","Cancel");
 return 
1;

After compiling it pawno shows me this:
PHP код:
C:\Users\WeeD\Desktop\Samp\gamemodes\SFCRRPG.pwn(16214) : warning 203symbol is never used"dcmd_ganghelp" 
Reply


Messages In This Thread
Gang cmd callback - by weedxd - 14.04.2014, 05:23
Re: Gang cmd callback - by Dignity - 14.04.2014, 05:27
Re: Gang cmd callback - by weedxd - 14.04.2014, 05:36
Re: Gang cmd callback - by weedxd - 14.04.2014, 06:05

Forum Jump:


Users browsing this thread: 1 Guest(s)