SA-MP Forums Archive
After dialogs,player not spawning with Team system - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: After dialogs,player not spawning with Team system (/showthread.php?tid=457104)



After dialogs,player not spawning with Team system - NinjahZ - 09.08.2013

I am making a TDM script,I have my Login/Register system,I made Team/Class Selection through Dialogs (2 teams) and then a few msgbox dialogs after it,I have setup the spawn code and I know it is right cause it has worked before,but it just seems to not work now after new dialogs,to fix this I would need to be able to trust someone with seeing my code,using teamviewer or something.


Re: After dialogs,player not spawning with Team system - Iron3man - 09.08.2013

Is the dialog box are appearing continously? If yes, then Put your spawn codes in the last msg dialogbox that is appearing
example:-
under ondialogresponse

if(dialogid == lastdialogid)
{
spawncode(x,y,z);
}

is it help you?
If you can't understand it. Then post your codes then only i can help.


Re: After dialogs,player not spawning with Team system - NinjahZ - 09.08.2013

Could you use T.V = Team Viewer


Re: After dialogs,player not spawning with Team system - Misiur - 09.08.2013

Man, we are using this forums to help people for free in our spare time. You can either provide little bits of your code, or pay for offboard support. Simple as that


Re: After dialogs,player not spawning with Team system - NinjahZ - 09.08.2013

Quote:
Originally Posted by Misiur
Посмотреть сообщение
Man, we are using this forums to help people for free in our spare time. You can either provide little bits of your code, or pay for offboard support. Simple as that
It's just alot of code,thats all,and I dont know what piece of code to upload,cause I havent got a clue what is wrong.


Re: After dialogs,player not spawning with Team system - Iron3man - 09.08.2013

post all the dialogbox and codes that are under the ondialogresponse and spawn codes


Re: After dialogs,player not spawning with Team system - NinjahZ - 09.08.2013

*** CODE REMOVED ***


Re: After dialogs,player not spawning with Team system - Iron3man - 09.08.2013

ok now simply put your spawn coordinates to the last dialog box that is appearing(i am posting this post by mobile so i can't see your codes fully in code box)


Re: After dialogs,player not spawning with Team system - NinjahZ - 09.08.2013

*** CODE REMOVED ***


Re: After dialogs,player not spawning with Team system - Misiur - 09.08.2013

http://pastebin.com is good, there's also cool https://gist.github.com/, but [ pawn] should suffice in most cases.

There is no DIALOG_S2 handler, so when somebody logs in not a whole lot happens? Inside DIALOG_A_RULES there isn't anything about spawning player, put it there.

Read some more about https://sampwiki.blast.hk/wiki/Control_Structures#switch , also about https://sampwiki.blast.hk/wiki/Control_Structures#else , understanding them is step closer to clean, readable, bug-free code.