01.11.2011, 14:48
Hello.
I just found an old map of mine while cleaning up my hard drive. Lead by curiosity I tried to launch it to check what features are there and such... How dissapointed I was when I noticed my map being crashed just after showing register dialog! What could be a reason of this?
It looks like it crashes on bottom lines...
I just found an old map of mine while cleaning up my hard drive. Lead by curiosity I tried to launch it to check what features are there and such... How dissapointed I was when I noticed my map being crashed just after showing register dialog! What could be a reason of this?
PHP код:
public OnPlayerConnect(playerid)
{
new str[128], secondstring[128], accname[128];
format(secondstring, sizeof(secondstring), "Map By:"AUTHOR" || Vehicles %d|", VEHICLE_COUNT);
SendClientMessage(playerid, COLOR_WHITE, secondstring); printf("second string message");
format(accname, sizeof(accname), "FILES/ACCOUNTS/%s.ini", GetName(playerid)); printf("Accname formating");
if(!fexist(accname)) printf("Checking if there's a file for defined player");
{
format(str, sizeof(str), "{FFFFFF}Hello. {FBFF00}%s \n\n{FFFFFF}Register!", GetName(playerid)); printf("register dialog formating");
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "Register", str, "Register", "Quit"); printf("Showed dialog");
return 1;
}
PHP код:
if(dialogid == DIALOG_REGISTER)
{
if(!response) return Kick(playerid);
if(response)
{
if(strlen(inputtext) == 0)
{
format(string, sizeof(string), "{FFFFFF}Hello {FBFF00}%s \n\n{FFFFFF}Register", GetName(playerid));
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "Register", string, "Register", "Quit");
return 0;
}