Im blind - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Im blind (
/showthread.php?tid=528581)
Im blind -
NeroX98 - 28.07.2014
WTF is problem in this code:
pawn Код:
new bizquery[256];
format(bizquery,sizeof(bizquery), "UPDATE biznisi SET bKupena = '%d', bSopstvenik = "%s" WHERE BiznisID = '%d'", BiznisInfo[b][bKupena], BiznisInfo[b][bSopstvenik], b);
mysql_function_query(1, bizquery, false, "", "");
Код:
C:\Users\PC\Desktop\Tomato\TRPG Nov\gamemodes\TRPG.pwn(4238) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Users\PC\Desktop\Tomato\TRPG Nov\gamemodes\TRPG.pwn(4238) : warning 215: expression has no effect
C:\Users\PC\Desktop\Tomato\TRPG Nov\gamemodes\TRPG.pwn(4238) : warning 215: expression has no effect
C:\Users\PC\Desktop\Tomato\TRPG Nov\gamemodes\TRPG.pwn(4238) : warning 215: expression has no effect
C:\Users\PC\Desktop\Tomato\TRPG Nov\gamemodes\TRPG.pwn(4238) : warning 215: expression has no effect
C:\Users\PC\Desktop\Tomato\TRPG Nov\gamemodes\TRPG.pwn(4238) : error 001: expected token: ";", but found ")"
C:\Users\PC\Desktop\Tomato\TRPG Nov\gamemodes\TRPG.pwn(4238) : error 029: invalid expression, assumed zero
C:\Users\PC\Desktop\Tomato\TRPG Nov\gamemodes\TRPG.pwn(4238) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Line 4238:
pawn Код:
format(bizquery,sizeof(bizquery), "UPDATE biznisi SET bKupena = '%d', bSopstvenik = "%s" WHERE BiznisID = '%d'", BiznisInfo[b][bKupena], BiznisInfo[b][bSopstvenik], b);
Re: Im blind -
sammp - 28.07.2014
You're using double quotes, change it to single quotes.
Re: Im blind -
NeroX98 - 28.07.2014
Oh my fckin god...
Thank you lol :P
REP +1
Re: Im blind -
sammp - 28.07.2014
Don't worry about it, that literally has to be a mistake so many people make! It's just a simple typo, just look over your code!
Thanks for the +rep, glad I could help!
Re: Im blind -
Clad - 28.07.2014
Already helped