MYSQL ORM Problem
#2

pawn Код:
orm_setkey(ormid, "ID");
orm_select(ormid, "OnPlayerDataLoad", "d", playerid);
You are fetching data from DB, you specify primary key as ID, but don't set any value for it.

https://sampforum.blast.hk/showthread.php?tid=461766 - as you can see, in this example in first select, the primary key is player name, which already is assigned to Player[playerid][Name]. So
pawn Код:
orm_setkey(ormid, "ID");
//to
orm_setkey(ormid, "Name");
And later change key to id if you want.
Reply


Messages In This Thread
MYSQL ORM Problem - by Rock - 30.01.2014, 15:54
Re: MYSQL ORM Problem - by Misiur - 30.01.2014, 16:30

Forum Jump:


Users browsing this thread: 1 Guest(s)