01.08.2006, 07:57
Quote:
Originally Posted by FeaR
Hei Draco, i dont want to make another subject about this, so i hope u dont mind if i pm'd u my question..
The dudb is working like a charm, but the coordinates are not, im making this when a player is logged in and disconnects is saves his coordinates, and loads them on login: ***Disconnect part*** new Float ![]() new Float:y; new Float:z; udb_SetPosition(udb_encode(playername),GetPlayerPo s(playerid, x, y, z)); ***login part*** SetPlayerPos(playerid, udb_getPosition(udb_encode(playername))); ***errors*** H:\SASERV~1\MOSTWA~1\mw.pwn(2852) : warning 202: number of arguments does not match definition H:\SASERV~1\MOSTWA~1\mw.pwn(2852) : warning 202: number of arguments does not match definition As u can see the login has only the coordinate x. Am i saving wrong, or loading wrong? U mind giving me a hand on this? Thanks in advance, greetings FeaR. |
This is what should be in OnPlayerDisconnect(playerid):
pawn Код:
new Float:x;
new Float:y;
new Float:z;
new playername[256];
GetPlayerName(playerid,playername,sizeof(playername));
GetPlayerPos(playerid, x, y, z);
udb_SetPosition(playername,x,y,z);
On the login part you should use this:
pawn Код:
new Float:x;
new Float:y;
new Float:z;
new playername[256];
GetPlayerName(playerid,playername,sizeof(playername));
udb_getPosition(playername,x,y,z);
SetPlayerPos(playerid, x,y,z);
Anyways please show how you implemented udb_getPosition and udb_SetPosition, because seems like they are broken, too.
Regrads,
Jan (DracoBlue)