dialog help
#4

Quote:

What i mean is how do i make my dialog respone to a player pressing "start" in the dialog?

Assuming to that, I think, that You've to do write code in public OnPlayerDialogResponse. In fisrt post you wrote the code.
I've modded it a bit
pawn Код:
if(dialogid == 1001 && response) {
     if(response){
// What will be done, when player pressed 'Start'
        PutPlayerInVehicle(playerid, cvehicle, 0);
    SetVehiclePos(cvehicle, 1020.7713, -920.2669, 419.8624);
    SetPlayerCheckpoint(playerid, 248.4739, -1329.2743, 52.6960, 5); // This will change the variable, so we can use it later on with OnPlayerEnterCheckpoint
    Challange1 = CreateDynamicCP( 248.4739, -1329.2743, 52.6960, 5);
    SendClientMessage(playerid, 0xFFFFFFFF, "You Started The Big Jump 1 Challange Get To The Checkpoint Quick");
}
else
{
//When aint responsed, e.g clicked ESC
return 1;
}
        return 1;
}
I don't know, if thats works, I even aint wrote it in pawn, only here, in msgbox.
Hope it will works.

LetsOWN
Reply


Messages In This Thread
dialog help - by manchestera - 24.10.2011, 16:45
Re: dialog help - by LetsOWN[PL] - 24.10.2011, 16:47
Re: dialog help - by manchestera - 24.10.2011, 16:55
Re: dialog help - by LetsOWN[PL] - 24.10.2011, 17:10
Re: dialog help - by Yahav - 24.10.2011, 17:20
Re: dialog help - by manchestera - 24.10.2011, 17:28
Re: dialog help - by Yahav - 24.10.2011, 17:35
Re: dialog help - by manchestera - 24.10.2011, 17:39
Re: dialog help - by Yahav - 24.10.2011, 17:48
Re: dialog help - by manchestera - 24.10.2011, 17:50

Forum Jump:


Users browsing this thread: 3 Guest(s)