30.05.2012, 01:37
try to indent it correctly
if you hit the second button the youll be kicked
just indenting your code will make it more clear to you.
pawn Код:
if(dialogid == 1111) // Terms and Roles
{
if(response) //BUTTON 1
{
if(gPlayerAccount[playerid] == 1)
{
DisplayDialogForPlayer(playerid, 1);
SendClientMessage(playerid, COLOR_YELLOW, "{248B10}Database: {FFFFFF}This player-file is loading, please login.");
}
else
{
DisplayDialogForPlayer(playerid, 2);
SendClientMessage(playerid, COLOR_YELLOW, "{248B10}Database: {FFFFFF}We do not have an account by this name to be loaded, please register to proceed to our Tutorial.");
}
}
else
{
SendClientMessage(playerid, 0xFF0000FF, "You rejected our Terms and Roles and have been kicked as a result.");
Kick(playerid);
}
}
if you hit the second button the youll be kicked
just indenting your code will make it more clear to you.