30.03.2010, 20:02
i was trying to make tutorial for my server and i started like this:
when player register it should put him on tutorial:
THIS IS JUST PART OF CODE
than i have callback and forward:
and than i have other things under DialogResponse ....
but when i create account it won't show this Dialog''3'' that i made under ''Public Tutorial1(playerid)
how i can make this tutorial?
i know i should make it OnPlayerSpawn, but if i am on good way tell me
when player register it should put him on tutorial:
THIS IS JUST PART OF CODE
Код:
dini_Create(file); dini_Set(file, "Password",inputtext); dini_IntSet(file,"AdminLevel", 0); dini_IntSet(file,"Cash", 500); dini_IntSet(file,"Sex",0); dini_IntSet(file,"Age",0); dini_IntSet(file,"Tutorial",0); SendClientMessage(playerid, 0x00ff41ff, "[System]: Account Created!"); PlayerPlaySound(playerid,1057,0.0,0.0,0.0); TogglePlayerControllable(playerid, 1); Tutorial1(playerid);-------------------------------------> IMORTANT
Код:
public Tutorial1(playerid) { new name[24]; GetPlayerName(playerid, name, sizeof(name)); new stri[128]; format(stri,256,"Welcome %s to Kljukec's Roleplay Server!\n\nI'am Tutorial NPC and i will teach you\n about things on this server.\nPlease tell us the fallowing informations!",name); ShowPlayerDialog(playerid,3,DIALOG_STYLE_MSGBOX,"Register",stri,"Ok","Quit"); return 1; }
but when i create account it won't show this Dialog''3'' that i made under ''Public Tutorial1(playerid)
how i can make this tutorial?
i know i should make it OnPlayerSpawn, but if i am on good way tell me
![Wink](images/smilies/wink.png)