OnDialogResponse[HALP] :)
#1

PHP код:
    if(dialogid == rules)
    {
    switch(
listitem)
        {
        case 
0//Agree with the rules
        
{
        new 
pname[24];
        new 
string[128];
        
GetPlayerName(playerid,pname,sizeof(pname));
        
format(string,sizeof(string),"%s(%d) Has readed the server rules by typing /showrules{FFFFFF}!",pname,playerid);
        
SendClientMessageToAll(COLOR_GREEN,string);
        for(new 
0MAX_PLAYERSi++)
        {
            
TogglePlayerControllable(i1);
        }
        }
        case 
1//Disagree with the rules
        
{
        new 
pname[24];
        new 
string[128];
        
GetPlayerName(playerid,pname,sizeof(pname));
        
Kick(playerid);
        
format(string,sizeof(string),"%s(%d) Has been kicked Reason:Disagreeing with server-rules{FFFFFF}, you can check it by typing /showrules!",pname,playerid);
        
SendClientMessageToAll(COLOR_GREEN,string);
        for(new 
0MAX_PLAYERSi++)
        {
            
TogglePlayerControllable(i1);
        }
        }
       }
      } 
Whats wrong with that code? It doesn't work properly. Nothing happens when i press Disagree, same with Agree

Thanks in advance
Reply


Messages In This Thread
OnDialogResponse[HALP] :) - by [CG]Milito - 13.12.2012, 17:52
Re: OnDialogResponse[HALP] :) - by Mean - 13.12.2012, 18:16
Re: OnDialogResponse[HALP] :) - by DaRk_RaiN - 13.12.2012, 18:22
Re: OnDialogResponse[HALP] :) - by Patrick - 13.12.2012, 18:24
Re: OnDialogResponse[HALP] :) - by Konstantinos - 13.12.2012, 18:32

Forum Jump:


Users browsing this thread: 4 Guest(s)