HELP mysql ORM
#1

Hello, i want to to load and register system but i have one problem.
Example: I register nick Cool_Guy and if i login with nick Cool_Gu it will show login screen not register.

Код:
stock RegOrLogin(playerid)
{
        //CHECK
        orm_setkey(pInfo[playerid][ORMID], "ID");
        if(orm_errno(pInfo[playerid][ORMID]) == ERROR_NO_DATA)
        {
		//REGISTRACION
        }
        else if(orm_errno(pInfo[playerid][ORMID]) == ERROR_OK)
        {
		// LOGIN
        }
        return true;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)