Im blind
#1

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);
Reply
#2

pawn Код:
bSopstvenik = "%s"
You're using double quotes, change it to single quotes.
Reply
#3

Oh my fckin god...

Thank you lol :P

REP +1
Reply
#4

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!
Reply
#5

Already helped
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)