16.04.2014, 14:44
So i have problem with this pickup, it should show dialog 2 times once when start working and once when i want to quit same pickup should show dialog box with yes and no options. But it's only working once and one more time only if i use teleport pickup to get teleported to other virtual world or interior. When i came back it works again but, still can not pick it up again to start working, so this is my problem.
Here it gets created
Here is that dialog thing what i was telling about..
EDIT: Almost forgot to add one thing here.
Help would be really appreciated.
Here it gets created
PHP код:
Pickup[26] = CreatePickup(1275, 23, 641.6313,887.7375,-42.9271);
PHP код:
if(pickupid == Pickup[26])
{
if(GetPVarInt(playerid, "Miner") > 0) return SendClientMessage(playerid, COLOR_GREY, "Tu jau strada cita darba!");
if(GetPVarInt(playerid, "Noun") == 0) ShowPlayerDialog(playerid, D_JOB+63, 0, "Darbs ar autoiekraveju", "Vai velies uzsakt autoiekraveja darbu?", "Ja", "Ne");
else ShowPlayerDialog(playerid, D_JOB+64, 0, "Darbs Ar autoiekraveju", "Vai velies beigt autoiekraveja darbu?", "Ja", "Ne");
}
PHP код:
case D_JOB+64:
{
if(!response) return 1;
DeletePVar(playerid, "Noun");
SetPlayerSkin(playerid, GetPVarInt(playerid, "OldMinerSkin"));
SendMes(playerid, COLOR_WHITE, "Jus beidzat darbu. Tu nopelniji: {33aa33}%i{ffffff} USD",GetPVarInt(playerid, "MinerKG")*2);
GiveMoney(playerid,GetPVarInt(playerid, "MinerKG")*2);
DeletePVar(playerid, "OldMinerSkin");
DeletePVar(playerid, "MinerKG");
DeletePVar(playerid, "Noun");
DeletePVar(playerid, "MinerKG_One");
DeletePVar(playerid, "NounObjID");
return 1;
}