if(dialogid == DIALOG_CHANGENAME)
{
if (response == 0)
{
return 1;
}
if (response == 1)
{
if (strlen(inputtext)==0)
{
SendClientMessage(playerid,COLOR_ERROR,"Please enter your desired name in the box.");
ShowChangeNameScreen(playerid);
return 1;
}
udb_RenameUser(PlayerName(playerid),inputtext);
SetPlayerName(playerid,inputtext);
format(string,sizeof(string),"You have successfully changed your name to '%s', use this to login from now on.",inputtext);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
return true;
}
return 1;
}
return 1;
}
|
C:\Users\Admin\Desktop\SFCRRPG\pawno\include\SFCRR PGdudb.inc(37) : warning 217: loose indentation |
if (dialogid == DIALOG_CHANGENAME)
{
if (response)
{
if (!strlen(inputtext))
{
SendClientMessage(playerid,COLOR_ERROR,"Please enter your desired name in the box.");
ShowChangeNameScreen(playerid);
return 1;
}
udb_RenameUser(PlayerName(playerid),inputtext);
SetPlayerName(playerid,inputtext);
format(string,sizeof(string),"You have successfully changed your name to '%s', use this to login from now on.",inputtext);
SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
}
return 1;
}