Jump to content

pomoc PickupType


bug

Recommended Posts

  • Globální moderátor

Zdravím,

 

je mi trápne že musím zakladať takýto topic ale inak to nejde....

 

Mám pickup,

Keď do neho vojdete ukáže vám dialog,

Ale keď sa pohybujem v tom dialogu každú sekundu ten pickup proste zoberie znova a znova..... posuniem si v style_list o pár možností dole a o sekundu už ho zoberie zase znova tak sa nachádzam zase navrchu...

 

new driverlicense;

driverlicense = CreatePickup(1239,1,2027.1650,1342.5490,10.8203,-1)




ďakujem za všetky budúce odpovede, dúfam že mi pomôžete

Link to comment
Share on other sites

Používaj namiesto ShowPlayerDialog

new bool:ShowedPlayerDialog[MAX_PLAYERS];

ShowPlayerDialogEx(playerid, id, style, lis[], mess[], button1[], button2[])
{
if(ShowedPlayerDialog[playerid] == true) return false;
ShowPlayerDialog(playerid, id, style, lis, mess, button1, button2);
ShowedPlayerDialog[playerid] = true;
return true;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    ShowedPlayerDialog[playerid] = false;
}
Link to comment
Share on other sites

  • Globální moderátor

 

Používaj namiesto ShowPlayerDialog

new bool:ShowedPlayerDialog[MAX_PLAYERS];

ShowPlayerDialogEx(playerid, id, style, lis[], mess[], button1[], button2[])
{
if(ShowedPlayerDialog[playerid] == true) return false;
ShowPlayerDialog(playerid, id, style, lis, mess, button1, button2);
ShowedPlayerDialog[playerid] = true;
return true;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    ShowedPlayerDialog[playerid] = false;
}

 

ďakujem ale ešte nejaké info k tomu čo to robí by sa hodilo ....

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...