mysql r7
#6

pawn Код:
if(dialogid == 3) //
{
if(!response) //
{
SendClientMessage(playerid,BLUE,"RPG: Kick ASS");
Kick(playerid);
}
if(response) //
{
new textt[40];
if(sscanf(inputtext,"s[18]",textt)) return ShowPlayerDialog(playerid,3,DIALOG_STYLE_PASSWORD, "{2981FC}RPG {FFFFFF}• {F82222}Login","{FFFFFF}Insert Your password:","Resume","Quit");
printf("Text %s",textt); //here i get what i write into dialog
printf("Textas %s",usrDB[playerid][password]); //here i get NULL
if(strcmp(textt, usrDB[playerid][password]))
LoadAccount(playerid);
}
else
{
connect[playerid]++;
if(connect[playerid] == MAX_connect)
{
return SendClientMessage(playerid, RED, "RPG: out of wrong moves");
}
ShowPlayerDialog(playerid,3,DIALOG_STYLE_PASSWORD, "{2981FC}RPG {FFFFFF}• {F82222}Login","{FFFFFF}Your password is incorrect type new","resume","quit");

}
}
}
and this code is correct? how about LoadAccount(playerid) better use here or after playerspawn callback?
Reply


Messages In This Thread
mysql r7 - by speed258 - 26.02.2013, 07:35
Re: mysql r7 - by speed258 - 26.02.2013, 10:11
Re: mysql r7 - by speed258 - 26.02.2013, 10:18
Re: mysql r7 - by speed258 - 26.02.2013, 11:59
Re: mysql r7 - by Misiur - 26.02.2013, 12:05
Re: mysql r7 - by speed258 - 26.02.2013, 12:39
Re: mysql r7 - by Misiur - 26.02.2013, 13:09
Re: mysql r7 - by speed258 - 26.02.2013, 13:29
Re: mysql r7 - by Misiur - 26.02.2013, 13:55
Re: mysql r7 - by speed258 - 26.02.2013, 14:19

Forum Jump:


Users browsing this thread: 1 Guest(s)