[help]dialog login problem
#1

hi! i have a problem. i created class system in dialog, but if i type wrong password a time or two it redirects me to class selection, whyy? can someone help?

script here
http://pastebin.com/A3FBnWMU
Reply
#2

nobody?
Reply
#3

On Player Connect:

TogglePlayerSpectating(playerid, true);

On Successful login:

TogglePlayerSpectating(playerid, false);

This will automatically call on player spawn.

(Credits to Mionee)
Reply
#4

Quote:
Originally Posted by Aerotactics
Посмотреть сообщение
On Player Connect:

TogglePlayerSpectating(playerid, true);

On Successful login:

TogglePlayerSpectating(playerid, false);

This will automatically call on player spawn.

(Credits to Mionee)
sorry but it wont work, since im going to have another location on login
Reply
#5

no one that can help a noob?:a
Reply
#6

Add on top new logged[MAX_PLAYERS]



Change your return showplayerdialog to

If(logged == 1){
ShowPlayerDialog(playerid, DIALOG_CLASS, DIALOG_STYLE_LIST, "Choose your class:", "Class 1\nClass 2\nClass 3", "Choose", "");
}
return 1;

Add onplayerconnect

logged[playerid] = 0;


And on succesful login so where you are giving money and setting score add logged[playerid] = 1;

Hope this helps
Reply
#7

Quote:
Originally Posted by Glenn332
Посмотреть сообщение
Add on top new logged[MAX_PLAYERS]



Change your return showplayerdialog to

If(logged == 1){
ShowPlayerDialog(playerid, DIALOG_CLASS, DIALOG_STYLE_LIST, "Choose your class:", "Class 1\nClass 2\nClass 3", "Choose", "");
}
return 1;

Add onplayerconnect

logged[playerid] = 0;


And on succesful login so where you are giving money and setting score add logged[playerid] = 1;

Hope this helps
yes it work, but if i remove TogglePlayerSpectating and adding own location on class selection the same happend, i can input wrong password 1 time and if i do it again it redirects me to class selection..:P
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)