05.12.2015, 15:36
So i deleted and made on simple test named register with blue box behind it but it doesnt even hover..
my show textdraw function
The function i call it
PHP код:
RegisterTD[11] = TextDrawCreate(294.399932, 281.093322, "Register");
TextDrawLetterSize(RegisterTD[11], 0.237196, 0.913066);
TextDrawTextSize(RegisterTD[11], 341.000000, 0.000000);
TextDrawAlignment(RegisterTD[11], 1);
TextDrawColor(RegisterTD[11], -1);
TextDrawUseBox(RegisterTD[11], 1);
TextDrawBoxColor(RegisterTD[11], 8388512);
TextDrawSetShadow(RegisterTD[11], 0);
TextDrawSetOutline(RegisterTD[11], 0);
TextDrawBackgroundColor(RegisterTD[11], 255);
TextDrawFont(RegisterTD[11], 2);
TextDrawSetProportional(RegisterTD[11], 1);
TextDrawSetShadow(RegisterTD[11], 0);
TextDrawSetSelectable(RegisterTD[11], true);
PHP код:
stock ShowRegisterScreen(playerid)
{
for(new i; i< sizeof(RegisterTD); i++)
{
TextDrawShowForPlayer(playerid, RegisterTD[i]);
}
SelectTextDraw(playerid,COLOR_BLACK);
return 1;
}
PHP код:
function OnAccountCheck(playerid)
{
new rows, fields,string[300];
cache_get_data(rows, fields, mysql);
if(rows)
{
cache_get_field_content(0, "Password", pinfo[playerid][Password], mysql, 129);
pinfo[playerid][ID] = cache_get_field_content_int(0, "ID");
printf("Pass Hash: %s", pinfo[playerid][Password]);
format(string,sizeof(string),""COL_WHITE"Welcome back "COL_LIGHTBLUE"%s "COL_WHITE" to Chaos "COL_BLUE"Cops "COL_WHITE"N "COL_RED"Robbers"COL_WHITE" Server developed by Unlimited Gaming. \nACCOUNT : "COL_LIGHTBLUE"REGISTERED"COL_WHITE"\nPlease "COL_GREEN"login "COL_WHITE" to continue.",GPN(playerid));
ShowPlayerDialog(playerid, dlogin, DIALOG_STYLE_PASSWORD,""COL_WHITE"Login to CCNR",string,"Login","Quit");
}
else
{
ShowRegisterScreen(playerid);
pinfo[playerid][Banned] = 0;
}
return 1;
}