22.05.2011, 20:50
Well, I have my account system working but for some reason my accent is being a pain in the ass.
OnPlayerText:
I have no idea what could be causing it, it is loading fine from the mysql database.
pawn Код:
enum pInfo
{
pName[20],
pPass[16],
pLevel,
pCash,
pAdmin,
Float:pHealth,
Float:pArmour,
Float:pPosX,
Float:pPosY,
Float:pPosZ,
pAccent, // Accent.
pTut,
pSkin,
bool:pLogged
};
new PlayerInfo[MAX_PLAYERS][pInfo];
pawn Код:
public OnPlayerText(playerid, text[])
{
new str[128];
format(str, sizeof(str), "%s says [%s accent]: %s", PlayerName(playerid), PlayerInfo[playerid][pAccent], text);
ProxDetector(10.0, playerid, str, COLOR_GREY, COLOR_GREY, COLOR_GREY, COLOR_GREY, COLOR_GREY);
print(str);
return 0;
}