[Ajuda] MYSQL pq!?
#6

pawn Код:
stock MySQL_SAVE(playerid) // 3886
{
    new query[1024];
    format(query, sizeof(query, "UPDATE accounts SET Username = %s, Senha = %s, IP = %s, scorelevel = %d, maconha = %d, sementes = %d, BPsize = %d, wanted = %d, moneybag = %d, COPskills = %d, CRIMINALskills = %d, PARAMEDICskills = %d, admin = %d, money = %d, bank = %d, kills = %d, deaths = %d, ", \
        PlayerName(playerid), Senha[playerid], IP[playerid], scorelevel[playerid], maconha[playerid], sementes[playerid], BPsize[playerid], wanted[playerid], moneybag[playerid], COPskills[playerid], CRIMINALskills[playerid], PARAMEDICskills[playerid], admin[playerid], money[playerid], bank[playerid], kills[playerid], deaths[playerid]);
    format(query, sizeof(query), "%sDP = %d, VIP = %d, fmembro = %d, fcargo = %d, preso = %d, presotime = %d, startVIPdia = %d, startVIPmes = %d, startVIPano = %d, carid = %d, carpos0 = %f, carpos1 = %f, carpos2 = %f, carpos3 = %f, spawnpoint = %d, housekey = %d, idiom = %d, tutorial = %d, banned = %d, leftBANdia = %d, leftBANmes = %d, leftBANano = %d WHERE UserID = %d", \
        query, DP[playerid], VIP[playerid], fmembro[playerid], fcargo[playerid], preso[playerid], presotime[playerid], startVIPdia[playerid], startVIPmes[playerid], startVIPano[playerid], carid[playerid], carpos[playerid][0], carpos[playerid][1], carpos[playerid][2], carpos[playerid][3], spawnpoint[playerid], housekey[playerid], idiom[playerid], tutorial[playerid], banned[playerid], leftBANdia[playerid], leftBANmes[playerid], leftBANano[playerid] , pInfo[playerid][UserID]);
    mysql_pquery(g_Write, query);
    return 1;
} // 3895
Desde do momento que a funзгo precisa de 2 ou mais linhas, tens de adicionar o \, este irб dizer ao compilador que a funзгo continua na linha seguinte.
Reply


Messages In This Thread
MYSQL pq!? - by maikons - 05.01.2015, 01:40
Re: MYSQL pq!? - by jovinon - 05.01.2015, 02:03
Re: MYSQL pq!? - by maikons - 05.01.2015, 03:16
Re: MYSQL pq!? - by Skream - 05.01.2015, 09:58
Re: MYSQL pq!? - by maikons - 05.01.2015, 17:56
Re: MYSQL pq!? - by GWMPT - 05.01.2015, 18:02
Re: MYSQL pq!? - by maikons - 05.01.2015, 18:10
Re: MYSQL pq!? - by Skream - 05.01.2015, 18:18
Re: MYSQL pq!? - by maikons - 05.01.2015, 20:55
Re: MYSQL pq!? - by GWMPT - 05.01.2015, 21:19

Forum Jump:


Users browsing this thread: 1 Guest(s)