Help[rep]
#1

this cmd is for jobs in dialog list..it says pawno not responding what might be problem??
[REP]


PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
switch(
dialogid)
                        {
                        case 
9035:
                        {
                        switch(
listitem)
                        {
                        case 
0:
                        {
                        for(new 
0i<MAX_PLAYERSi++)
                        {
                        
SendClientMessage(playerid0x83FF46FF".: [Bravo]: Ai luat jobul Detective :.");
                        
PlayerPlaySound(playerid10560.00.00.0);
                        
PlayerInfo[playerid][pJob] = 1;
                        
PlayerInfo[playerid][pContractTime] = 5;
                        }
                        }
                        return 
1;
                        }
                        case 
1:
                        {
                        for(new 
0i<MAX_PLAYERSi++)
                        {
                        
SendClientMessage(playerid(i0x83FF46FF".: [Bravo]: Ai luat jobul Lawyer :.");
                        
PlayerPlaySound(playerid10560.00.00.0);
                        
PlayerInfo[playerid][pJob] = 2;
                        
PlayerInfo[playerid][pContractTime] = 5;
                        }
                        }
                        return 
1;
                        }
                        case 
2:
                        {
                        for(new 
0i<MAX_PLAYERSi++)
                        {
                        
SendClientMessage(playerid(i0x83FF46FF".: [Bravo]: Ai luat jobul Bodyguard :.");
                        
PlayerPlaySound(playerid10560.00.00.0);
                        
PlayerInfo[playerid][pJob] = 8;
                        
PlayerInfo[playerid][pContractTime] = 5;
                        }
                        }
                        return 
1;
                        }
                        case 
3:
                        {
                        for(new 
0i<MAX_PLAYERSi++)
                        {
                        
SendClientMessage(playerid(i0x83FF46FF".: [Bravo]: Ai luat jobul Bus Driver :.");
                        
PlayerPlaySound(playerid10560.00.00.0);
                        
PlayerInfo[playerid][pJob] = 14;
                        
PlayerInfo[playerid][pContractTime] = 5;
                        }
                        }
                        return 
1;
                        }
                        case 
4:
                        {
                        for(new 
0i<MAX_PLAYERSi++)
                        {
                        
SendClientMessage(playerid(i0x83FF46FF".: [Bravo]: Ai luat jobul Boxer :.");
                        
PlayerPlaySound(playerid10560.00.00.0);
                        
PlayerInfo[playerid][pJob] = 12;
                        
PlayerInfo[playerid][pContractTime] = 5;
                        }
                        }
                        return 
1;
                        }
                        case 
5:
                        {
                        if (
GetPlayerState(playerid) == 1)
                        {
                        for(new 
0i<MAX_PLAYERSi++)
                        {
                        
SendClientMessage(playerid(i0x83FF46FF".: [Bravo]: Ai luat jobul Maturator :.");
                        
PlayerPlaySound(playerid10560.00.00.0);
                        
PlayerInfo[playerid][pJob] = 18;
                        
PlayerInfo[playerid][pContractTime] = 5;
                        }
                        }
                        return 
1;
                        }
                        case 
6:
                        {
                        if (
GetPlayerState(playerid) == 1)
                        {
                        for(new 
0i<MAX_PLAYERSi++)
                        {
                        
SendClientMessage(playerid(i0x83FF46FF".: [Bravo]: Ai luat jobul Car Dealer :.");
                        
PlayerPlaySound(playerid10560.00.00.0);
                        
PlayerInfo[playerid][pJob] = 10;
                        
PlayerInfo[playerid][pContractTime] = 5;
                        }
                        }
                        return 
1;
                        }
                        case 
7:
                        {
                        for(new 
0i<MAX_PLAYERSi++)
                        {
                        
SendClientMessage(playerid(i0x83FF46FF".: [Bravo]: Ai luat jobul Paper Boy :.");
                        
PlayerPlaySound(playerid10560.00.00.0);
                        
PlayerInfo[playerid][pJob] = 15;
                        
PlayerInfo[playerid][pContractTime] = 5;
                        }
                        }
                        return 
1;
                        }
                        case 
8:
                        {
                        for(new 
0i<MAX_PLAYERSi++)
                        {
                        
SendClientMessage(playerid(i0x83FF46FF".: [Bravo]: Ai luat jobul Farmer :.");
                        
PlayerPlaySound(playerid10560.00.00.0);
                        
PlayerInfo[playerid][pJob] = 17;
                        
PlayerInfo[playerid][pContractTime] = 5;
                        }
                        }
                        return 
1;
                        }
                        case 
9:
                        {
                        for(new 
0i<MAX_PLAYERSi++)
                        {
                        
SendClientMessage(playerid(i0x83FF46FF".: [Bravo]: Ai luat jobul Trucker :.");
                        
PlayerPlaySound(playerid10560.00.00.0);
                        
PlayerInfo[playerid][pJob] = 16;
                        
PlayerInfo[playerid][pContractTime] = 5;
                        }
                        }
                        return 
1;
                        }
                        case 
10:
                        {
                        for(new 
0i<MAX_PLAYERSi++)
                        {
                        
SendClientMessage(playerid(i0x83FF46FF".: [Bravo]: Ai luat jobul Garbage Collector :.");
                        
PlayerPlaySound(playerid10560.00.00.0);
                        
PlayerInfo[playerid][pJob] = 19;
                        
PlayerInfo[playerid][pContractTime] = 5;
                        }
                        }
                        return 
1;
                        }
                        }
                        }
                        }
                        }
                        return 
1;
                        } 
Edit:i moved it somewhere else ondialogResponse and it gave me 26 errors that have nothing..
Reply


Messages In This Thread
Help[rep] - by Dan_Barocu - 15.03.2012, 16:26
Re: Help[rep] - by Dan_Barocu - 15.03.2012, 16:36
Re: Help[rep] - by Dan_Barocu - 15.03.2012, 17:07
Re: Help[rep] - by Vince - 15.03.2012, 17:09
Re: Help[rep] - by GNGification - 15.03.2012, 17:17
Re: Help[rep] - by Dan_Barocu - 15.03.2012, 17:21
Re: Help[rep] - by GNGification - 15.03.2012, 17:23
Re: Help[rep] - by Dan_Barocu - 15.03.2012, 17:46
Re: Help[rep] - by Mauzen - 15.03.2012, 18:03
Re: Help[rep] - by Dan_Barocu - 15.03.2012, 18:33

Forum Jump:


Users browsing this thread: 1 Guest(s)