Class Selection not working via dialog help please?
#1

I have setup 2 classes for my TDM script,I get no errors in compiling but when I start the server up and join the server
I get to the login system,that works fine,then shows the team selection dialog,but after selecting my class it does nothing,neither does the spawn button
Reply
#2

Can you share us your code?
Reply
#3

Yes,can I pm you a link to my Github full code?
Reply
#4

You need to return 1 at OnPlayerRequestClass and OnPlayerRequestSpawn to let the Spawn button work
Reply
#5

Nero_3D you didn't got him properly.

He says .. When he click one team. (You can say select one team). He should get the other dialog i.e. class dialog which he is not getting.

and to get it, make it like

pawn Код:
//For team dialog
if(!response) { /*show back the team dialog*/ }
switch(listitem) {
   case 0: //Show class dialog
   case 1: //Show class dialog.
}

//WARNING: It is just an example of doing it not exact one. It is up to you how you want it
Reply
#6

Quote:
Originally Posted by Jarnu
Посмотреть сообщение
Nero_3D you didn't got him properly.

He says .. When he click one team. (You can say select one team). He should get the other dialog i.e. class dialog which he is not getting.

and to get it, make it like

pawn Код:
//For team dialog
if(!response) { /*show back the team dialog*/ }
switch(listitem) {
   case 0: //Show class dialog
   case 1: //Show class dialog.
}

//WARNING: It is just an example of doing it not exact one. It is up to you how you want it
No,Nero is right,when my Dialog for class/teams come up,I click it,but nothing happens,which will be because
return 1; was not there
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)