[Help] Just 4 errors.
#1

Hey guys ! I have 4 errors at my script (mysql errors) :

pawn Код:
C:\Users\Win7\Desktop\[url]WwW.Sa-Mp.Ro\Filterscripts\Darky's[/url] Admin System v2.0\DarkyAdmin.pwn(142) : error 017: undefined symbol "Query"
C:\Users\Win7\Desktop\[url]WwW.Sa-Mp.Ro\Filterscripts\Darky'
s[/url] Admin System v2.0\DarkyAdmin.pwn(142) : error 017: undefined symbol "Query"
C:\Users\Win7\Desktop\[url]WwW.Sa-Mp.Ro\Filterscripts\Darky's[/url] Admin System v2.0\DarkyAdmin.pwn(142) : error 029: invalid expression, assumed zero
C:\Users\Win7\Desktop\[url]WwW.Sa-Mp.Ro\Filterscripts\Darky'
s[/url] Admin System v2.0\DarkyAdmin.pwn(142) : fatal error 107: too many error messages on one line
Line 142 :
pawn Код:
format(Query,sizeof(Query),"SELECT Username FROM `Conturi` WHERE `Username` = '%s'",GetPName(playerid));
Can someone help me ? Thanks !
Reply
#2

You have to define query (which in this case appears to be the string).

Try adding new Query[128]; before that line.
Reply
#3

I added new Query[128]; and i got another 7 errors :
pawn Код:
C:\Users\Win7\Desktop\[url]WwW.Sa-Mp.Ro\Filterscripts\Darky's[/url] Admin System v2.0\DarkyAdmin.pwn(143) : error 017: undefined symbol "GetPName"
C:\Users\Win7\Desktop\[url]WwW.Sa-Mp.Ro\Filterscripts\Darky'
s[/url] Admin System v2.0\DarkyAdmin.pwn(148) : error 017: undefined symbol "GetPName"
C:\Users\Win7\Desktop\[url]WwW.Sa-Mp.Ro\Filterscripts\Darky's[/url] Admin System v2.0\DarkyAdmin.pwn(153) : error 017: undefined symbol "LoadStats"
C:\Users\Win7\Desktop\[url]WwW.Sa-Mp.Ro\Filterscripts\Darky'
s[/url] Admin System v2.0\DarkyAdmin.pwn(154) : error 017: undefined symbol "pData"
C:\Users\Win7\Desktop\[url]WwW.Sa-Mp.Ro\Filterscripts\Darky's[/url] Admin System v2.0\DarkyAdmin.pwn(154) : warning 215: expression has no effect
C:\Users\Win7\Desktop\[url]WwW.Sa-Mp.Ro\Filterscripts\Darky'
s[/url] Admin System v2.0\DarkyAdmin.pwn(154) : error 001: expected token: ";", but found "]"
C:\Users\Win7\Desktop\[url]WwW.Sa-Mp.Ro\Filterscripts\Darky's[/url] Admin System v2.0\DarkyAdmin.pwn(154) : error 029: invalid expression, assumed zero
C:\Users\Win7\Desktop\[url]WwW.Sa-Mp.Ro\Filterscripts\Darky'
s[/url] Admin System v2.0\DarkyAdmin.pwn(154) : fatal error 107: too many error messages on one line
Lines :
143 :
pawn Код:
format(Query,sizeof(Query),"SELECT Username FROM `Conturi` WHERE `Username` = '%s'",GetPName(playerid));
148 :
pawn Код:
format(Query,sizeof Query,"SELECT IP FROM `Conturi` WHERE `Username` = '%s' AND `IP` = '%s'",GetPName(playerid),GetIP(playerid));
153 :
pawn Код:
LoadStats(playerid);
154 :
pawn Код:
pData[playerid][Logat] = 1;
Can help me againg ? Thanks.
Reply
#4

use GetPlayerName instead of GetPName, define pData
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)