Another "OnDialogResponse" problem
#9

Well eh, that's not the thing i want.
Basically.
pawn Код:
if(GetPlayerScore(playerid) < 150) SendClientMessage(playerid, COLOR_RED, "You need to have 150 score to use the Sniper class!");
                                                //FORCES the player to choose the class on next death.
                                                //Or just shows the dialog again, but same error
                        else
                        SendClientMessage(playerid, COLOR_GREEN, "Sniper class chosen!");
If the player won't have 150 score, he will have an "error" message, and it will force him to change his class on the next death // Show him the dialog.
Else will happen if the player would have 150 score.. And so on.
I have an /sc script "based" on this.
pawn Код:
CMD:sc(playerid, params[]) {
    Class_Chosen{ playerid } = false; //Sets the Class_Chosen to False, so after he dies, he will be able to change his class.
    SendClientMessage(playerid, COLOR_ORANGE, "Switching class after the next death.");
    return 1;
}
And that Class_Chosen works..
:[
EDIT: Even if i place the Class_Chosen ... = false; in a diff. place, it will still give me that error.

EDIT:Nvm, fixed it, thanks, will +rep when i can.. Currently says that i need to spread some rep for some of you.
Reply


Messages In This Thread
Another "OnDialogResponse" problem - by Kyance - 23.10.2013, 11:43
Re: Another "OnDialogResponse" problem - by ]Rafaellos[ - 23.10.2013, 11:50
Re: Another "OnDialogResponse" problem - by Kyance - 23.10.2013, 12:17
Re: Another "OnDialogResponse" problem - by ]Rafaellos[ - 23.10.2013, 13:26
Re: Another "OnDialogResponse" problem - by Kyance - 23.10.2013, 18:52
Re: Another "OnDialogResponse" problem - by ReV. - 23.10.2013, 18:55
Re: Another "OnDialogResponse" problem - by Konstantinos - 23.10.2013, 19:05
Re: Another "OnDialogResponse" problem - by Pottus - 23.10.2013, 19:09
Re: Another "OnDialogResponse" problem - by Kyance - 24.10.2013, 04:11

Forum Jump:


Users browsing this thread: 1 Guest(s)