Posts: 265
Threads: 59
Joined: Sep 2013
Hello guys, I've a simple question, how for gods sake can I make a pickup stop looping, I mean I am using pickup which leads to a dialog, and even tho' I close the dialog, it repeats itself after 1 millisecond and basically blocks the movement lol, is it something with the pickup type, or some loop problem? Anyways, thanks ahead for the answer.
Posts: 163
Threads: 22
Joined: Oct 2012
Reputation:
0
TogglePlayerControllable(playerid, 1);
Posts: 265
Threads: 59
Joined: Sep 2013
Quote:
Originally Posted by Dana_scully
TogglePlayerControllable(playerid, 1);
|
I do not understand, will that stop the pickup from looping over itself? Since it just freezes my cahracter, doesn't make the pickup stable.
Quote:
Originally Posted by =KempeR=
Give us a code!
|
What for? I am just asking if there's a way to stop it.
P.S. - It's a pickup which leads to a dialog which leads to ondialogresponse, a simple weapon menu, nothing special.
Posts: 422
Threads: 107
Joined: Sep 2013
Reputation:
0
I not think its possible to stop the pickups keep looping because its a source of san andreas...
Posts: 265
Threads: 59
Joined: Sep 2013
Quote:
Originally Posted by Vanter
What I use is, VARIABLES! PROBABLY EASIEST THING IN PAWNO!
pawn Код:
new Used1[MAX_PLAYERS];
public OnPlayerPickUpDynamicPickup(playerid, pickupid) { //==============================Banks=====================================// if(pickupid == BankEnt1) { if(Used1[playerid] == 0) { SHOW DIALOG Used1[playerid] =1; } return 1; } }
//The on player close dialog, make a timer so it sets Used1 to zero.
That's a simple solution
|
I've did it, but I didn't get the timer stuff, I mean it works fine and no loops or shit like that, but once I enter a pickup, it stops working after that..