15.03.2012, 16:26
this cmd is for jobs in dialog list..it says pawno not responding what might be problem??
[REP]
Edit:i moved it somewhere else ondialogResponse and it gave me 26 errors that have nothing..
[REP]
PHP код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case 9035:
{
switch(listitem)
{
case 0:
{
for(new i = 0; i<MAX_PLAYERS; i++)
{
SendClientMessage(playerid, 0x83FF46FF, ".: [Bravo]: Ai luat jobul Detective :.");
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pJob] = 1;
PlayerInfo[playerid][pContractTime] = 5;
}
}
return 1;
}
case 1:
{
for(new i = 0; i<MAX_PLAYERS; i++)
{
SendClientMessage(playerid(i, 0x83FF46FF, ".: [Bravo]: Ai luat jobul Lawyer :.");
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pJob] = 2;
PlayerInfo[playerid][pContractTime] = 5;
}
}
return 1;
}
case 2:
{
for(new i = 0; i<MAX_PLAYERS; i++)
{
SendClientMessage(playerid(i, 0x83FF46FF, ".: [Bravo]: Ai luat jobul Bodyguard :.");
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pJob] = 8;
PlayerInfo[playerid][pContractTime] = 5;
}
}
return 1;
}
case 3:
{
for(new i = 0; i<MAX_PLAYERS; i++)
{
SendClientMessage(playerid(i, 0x83FF46FF, ".: [Bravo]: Ai luat jobul Bus Driver :.");
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pJob] = 14;
PlayerInfo[playerid][pContractTime] = 5;
}
}
return 1;
}
case 4:
{
for(new i = 0; i<MAX_PLAYERS; i++)
{
SendClientMessage(playerid(i, 0x83FF46FF, ".: [Bravo]: Ai luat jobul Boxer :.");
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pJob] = 12;
PlayerInfo[playerid][pContractTime] = 5;
}
}
return 1;
}
case 5:
{
if (GetPlayerState(playerid) == 1)
{
for(new i = 0; i<MAX_PLAYERS; i++)
{
SendClientMessage(playerid(i, 0x83FF46FF, ".: [Bravo]: Ai luat jobul Maturator :.");
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pJob] = 18;
PlayerInfo[playerid][pContractTime] = 5;
}
}
return 1;
}
case 6:
{
if (GetPlayerState(playerid) == 1)
{
for(new i = 0; i<MAX_PLAYERS; i++)
{
SendClientMessage(playerid(i, 0x83FF46FF, ".: [Bravo]: Ai luat jobul Car Dealer :.");
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pJob] = 10;
PlayerInfo[playerid][pContractTime] = 5;
}
}
return 1;
}
case 7:
{
for(new i = 0; i<MAX_PLAYERS; i++)
{
SendClientMessage(playerid(i, 0x83FF46FF, ".: [Bravo]: Ai luat jobul Paper Boy :.");
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pJob] = 15;
PlayerInfo[playerid][pContractTime] = 5;
}
}
return 1;
}
case 8:
{
for(new i = 0; i<MAX_PLAYERS; i++)
{
SendClientMessage(playerid(i, 0x83FF46FF, ".: [Bravo]: Ai luat jobul Farmer :.");
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pJob] = 17;
PlayerInfo[playerid][pContractTime] = 5;
}
}
return 1;
}
case 9:
{
for(new i = 0; i<MAX_PLAYERS; i++)
{
SendClientMessage(playerid(i, 0x83FF46FF, ".: [Bravo]: Ai luat jobul Trucker :.");
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pJob] = 16;
PlayerInfo[playerid][pContractTime] = 5;
}
}
return 1;
}
case 10:
{
for(new i = 0; i<MAX_PLAYERS; i++)
{
SendClientMessage(playerid(i, 0x83FF46FF, ".: [Bravo]: Ai luat jobul Garbage Collector :.");
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pJob] = 19;
PlayerInfo[playerid][pContractTime] = 5;
}
}
return 1;
}
}
}
}
}
return 1;
}