Mysql Error
#2

Try this...

pawn Код:
stock MySQL_Register(playerid, passwordstring[])
{
    new query[500], pname[24], IP[16];
    GetPlayerName(playerid, pname, 24);
    GetPlayerIp(playerid, IP, 16);
    SetPlayerHealth(playerid,100);
    format(query, sizeof(query), "INSERT INTO playerdata (user, password, score, money, IP, admin, skin, health, armor, xchord, ychord, zchord, virtualw, interior) VALUES('%s', SHA1('%s'),0, 0, '%s', 0, 0, 100, 0, 1958, 1343, 15, 0, 0,0)", pname, passwordstring, IP);
    mysql_query(query);
    SendClientMessage(playerid, -1, "You have been registered on this server!");
    Logged[playerid] = 1;
    return 1;
}
Reply


Messages In This Thread
Mysql Error - by Shockey HD - 29.04.2012, 17:02
Re: Mysql Error - by Crazymax - 29.04.2012, 17:05

Forum Jump:


Users browsing this thread: 2 Guest(s)