Problem in SetTimerEx -
motherfucker - 20.07.2011
PHP код:
switch(dialogid)
{
case DIALOG_REGISTER:
{
if(!response) return SetKick(playerid,-1,".бзш мцаъ одщшъ бдшщод");
if(response)
{
if(strlen(inputtext) < 5 || strlen(inputtext) > 10) {
SendClientMessage(playerid, COLOR_RED, ".аешк дсйсод цшйлд мдйеъ бйп 5 м 10 ъеейн");
format(stringEx, sizeof(stringEx),".бшек дба, длйрей щмк айре шщен\n\n%s\n:шщен моид аъ сйсоък лгй мдйшщн",GetName(playerid));
return ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"{A9A9A9}"Community_Name" // змеп дшщод",stringEx,"дйшщн","ца одщшъ");
}
RegisterPlayer(playerid,inputtext);
SendClientMessage(playerid,COLOR_GREY," *** Please wait...");
SetTimerEx("RegPlayer",2000,false,"ii",playerid,inputtext);
}
}
forward RegPlayer(playerid,pass[]);
public RegPlayer(playerid,pass[])
{
new Pass[12],Name[25];
SendClientMessage(playerid,lightblue,"--- !зщберк рецш бдцмзд ---");
format(Name, sizeof(Name),"Account: %s",GetName(playerid));
SendClientMessage(playerid,COLOR_ORANGE,Name);
format(Pass, sizeof(Pass),"Password: %s",pass);
SendClientMessage(playerid,COLOR_ORANGE,Name);
//SendClientMessage(playerid, COLOR_ORANGE,"/Setting - мтшйлъ двгшеъ дощъощ щмк шщен");
SendClientMessage(playerid, COLOR_RED, "^ .ара цмн фшийн амд тм оръ мжлеш аъ фшийк *^");
PlaySound(playerid, 1057);
format(stringEx, sizeof(stringEx),"{00FF00}!зщберк рецш бдцмзд\n\n{FF8C00}%s :щн ощъощ\n{FF0000}%s :сйсод\n /Setting - мтшйлъ двгшеъ дощъощ щмк шщен",GetName(playerid),pass);
ShowPlayerDialog(playerid,22,DIALOG_STYLE_MSGBOX,"{00FFFF}"Community_Name" // змеп дшщод",stringEx,"айщеш","");
return true;
}
Why it does not show the password?
Re: Problem in SetTimerEx -
SchurmanCQC - 20.07.2011
Motherfucker, explain your problem more.
(lol)
Re: Problem in SetTimerEx -
motherfucker - 20.07.2011
I tried to do a timer to "RegPlayer".
And that does not display the password
Re: Problem in SetTimerEx -
Raimis_R - 20.07.2011
pawn Код:
SetTimerEx("RegPlayer",2000,false,"is",playerid,inputtext);
Re: Problem in SetTimerEx -
motherfucker - 20.07.2011
Not work
Re: Problem in SetTimerEx -
dowster - 20.07.2011
[code]
GetName(playerid)
//should be this
GetPlayerName(playerid)[code]
also you need longer strings
Код:
new Pass[12],Name[25];
//should be
new Pass[64],Name[MAX_PLAYER_NAME];
and
Код:
forward RegPlayer(playerid,pass[]);
public RegPlayer(playerid,pass[])
//should be
forward RegPlayer(playerid,inputtext[]);
public RegPlayer(playerid,inputtext[])
lastly you will have to change the following also
Код:
format(Pass, sizeof(Pass),"Password: %s",pass);
SendClientMessage(playerid,COLOR_ORANGE,Name);
//should be
format(Pass, sizeof(Pass),"Password: %s",inputtext);
SendClientMessage(playerid,COLOR_ORANGE,Pass);
Should be good
Re: Problem in SetTimerEx -
motherfucker - 20.07.2011
Not work... ):
I think it's a problem in the timer
Re: Problem in SetTimerEx -
motherfucker - 20.07.2011
How can I use that?