nos leirhatom de szerintem ez nem pawn kód hiba.
lekérdezés:
new MyRegID,autologin;
// Autologin
format(query, sizeof(query), \"SELECT * FROM `players` WHERE `Name` = \'%s\' AND `Ip` = \'%s\'\", Name(playerid), IP);
mysql_query(query);
mysql_store_result();
if(mysql_num_rows() != 0)
{
mysql_fetch_row(Line);
//a Line itt egy 1-20 ig terjedõ szám legtöbbször 17 18
mysql_free_result();
sscanf(Line, \"p<|>d{s[24]s[16]s[30]s[24]s[70]ddddddddddddddddddddddddds[3700]ddds[100]ddddddddds[100]dddd}d{dd}\",MyRegID,autologin);
//sscanf(Line, \"p<|>d{s[24]s[20]s[20]s[24]s[70]d}\", MyRegID);
if(autologin)
{
SetPVarInt(playerid, \"RegID\", MyRegID);
LoginPlayer(playerid, Line);
if(GetPVarInt(playerid,\"AdminSz\")) SetPVarInt(playerid,\"readcmds\",1);
SendClientMessage(playerid, COLOR_GREEN,\"Automatikusan bejelentkeztél. (/autologin a ki illetve bekapcsoláshoz)\");
}
}
else
{
mysql_free_result();
}
a tábla szerkezete meg:
1 reg_id mediumint(7)
2 name varchar(24)
3 ip varchar(20)
4 pass varchar(20)
5 reg_date varchar(24)
6 sp varchar(70) latin1_swedish_ci
7 money int(20)
8 score int(20)
9 bank int(20)
10 level int(20)
11 mute int(20)
12 warns int(20)
13 jail int(20)
14 deaths int(20)
15 kills int(20)
16 time int(20)
17 allowpm int(20)
18 allowgoto int(20)
19 allowboost int(20)
20 autofix int(20)
21 antifall int(20)
22 savedskin int(20)
23 style int(20)
24 Clan int(20)
25 maxkills int(20)
26 kincseslada int(20)
27 reakcioteszt int(20)
28 matek int(20)
29 star int(20)
30 color int(20)
31 vip int(20)
32 fal varchar(3700) latin1_swedish_ci
33 munka int(20)
34 elvmunka int(20)
35 spawn int(20)
36 sc varchar(100)
37 house int(4)
38 StuntLvl int(4)
39 DriftLvl int(4)
40 RpLvl int(4)
41 DMLvl int(4)
42 StuntExp int(20
43 DriftExp int(20)
44 RpExp int(20)
45 DMExp int(20)
46 weapons varchar(100) latin1_swedish_ci
47 MainSkill tinyint(1)
48 SkillText tinyint(1)
49 ClanRang tinyint(2)
50 Races int(20)
51 Autologin tinyint(1)
52 Szavazott tinyint(1)
53 AdminSz tinyint(1)