Mysql login + PVars system
#1

pawn Код:
mysql_fetch_row_format( line, "|" );
      sscanf        ( line, "p<|>ds[24]s[64]ddddddddddddddddddddddddddfffd",
                          tmpint, // Skipping (id)
                                  string, // Skipping (name)
                                  string, // Skipping (password)
                                  SetPVarInt( playerid, "level", d ),
                                  SetPVarInt( playerid, "admin", d ),
                                  SetPVarInt( playerid, "cash", d ),
                                  SetPVarInt( playerid, "bank", d ),
                                  SetPVarInt( playerid, "fighting", d ),
                                  SetPVarInt( playerid, "playtime", d ),
                                  SetPVarInt( playerid, "done", d ),
                                  SetPVarInt( playerid, "sex", d ),
                                  SetPVarInt( playerid, "age", d ),
                                  SetPVarInt( playerid, "origin", d ),
                                  SetPVarInt( playerid, "deaths", d ),
                                  SetPVarInt( playerid, "kills", d ),
                                  SetPVarInt( playerid, "rank", d ),
                                  SetPVarInt( playerid, "member", d ),
                                  SetPVarInt( playerid, "inv0", d ),
                                  SetPVarInt( playerid, "inv1", d ),
                  SetPVarInt( playerid, "inv2", d ),
                  SetPVarInt( playerid, "inv3", d ),
                  SetPVarInt( playerid, "inv4", d ),
                  SetPVarInt( playerid, "warns", d ),
                  SetPVarInt( playerid, "number", d ),
                  SetPVarInt( playerid, "skin", d ),
                  SetPVarInt( playerid, "driving", d ),
                  SetPVarInt( playerid, "flying", d ),
                  SetPVarInt( playerid, "motoring", d ),
                  SetPVarInt( playerid, "sailing", d ),
                  SetPVarFloat( playerid, "posx", f ),
                  SetPVarFloat( playerid, "posy", f ),
                  SetPVarFloat( playerid, "posz", f ),
                  SetPVarInt( playerid, "radio", d )
Hi, I'm using the code above ^^^, to set players data from mysql one line, example: "My_Name|0|500|300" etc., to PVars, but when i try the script above, i get this error:
pawn Код:
E:\Documents and Settings\Simas\Desktop\SA-MP\erp_kuriama\gamemodes\erp.pwn(1836 -- 1840) : error 017: undefined symbol "d"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
How can I do this guys?
Thanks,
Simas.
Reply


Messages In This Thread
Mysql login + PVars system - by kLx - 11.05.2010, 14:46
Re: Mysql login + PVars system - by kLx - 12.05.2010, 04:21
Re: Mysql login + PVars system - by Steven82 - 12.05.2010, 04:27
Re: Mysql login + PVars system - by kLx - 12.05.2010, 04:32
Re: Mysql login + PVars system - by theRealG - 12.05.2010, 04:48
Re: Mysql login + PVars system - by kLx - 12.05.2010, 11:30

Forum Jump:


Users browsing this thread: 1 Guest(s)