PHP код:
case DIALOG_REGISTER:
{
if(!response) return Kick(playerid);
if(strlen(inputtext) < 6) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, "Registration", "{FFFFFF}Your account does not exist. Please register below\nbefore playing so your statistics save.\n\nYour password must be at least {F05151}6 characters{FFFFFF} long!", "Next", "Quit");
WP_Hash(Player[playerid][Pass], 129, inputtext); //hashing inputtext
Logged[playerid] = false;
Newreg[playerid]*=*false;
*
mysql_format(mysql,*query,*sizeof(query),*"INSERT*INTO*`players`*(`ID`,*`User`,*`Pass`,*`IP`,*`Admin`,*`SkinID`,*`AccountLocked`,*`AccountBanned`,*`BanningAdmin`,*`BannedReason`,*`MoneyHand`,*`MoneyBank`,`Health`,*`Armour`,*`LastActivity`,*`WeaponSlot1`,*`WepSlotAmmo1`,*`WeaponSlot2`,*`WepSlotAmmo2`,*`WeaponSlot3`,*`WepSlotAmmo3`,*`WeaponSlot4`,*`WepSlotAmmo4`,*`WeaponSlot5`,*`WepSlotAmmo5`)\
* VALUES*('',*'%e',*'%s',*'%s',*0,*299,*0,*0,*0,*0,*0,*0,*0,*0,*0,*0,*250,*5000,*0,*0,*0,*100.0,*0.0,*0,*0)",*GetUserName(playerid),*Player[playerid][Pass],*IP[playerid]);*
mysql_query(mysql, query, "CreateUser", "i", playerid);
}
}
return false;
}
Stars in the code - no. This bug forum. Error on string - Newreg[playerid]*=*false;
Seems more like a bug with SumblimeText that anything else. Try typing it over by hand instead of pasting it. The pawn compiler sees the star so it is definitely there.