09.07.2013, 17:12
So I am new to MySQL, trying to learn from the forums' tutorials.I have read this tutorial but I have errors.Here are the errors:
And here is line 48 and 70
Код:
C:\Users\Netzip\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\Server from MySQL.pwn(48) : error 017: undefined symbol "mysql_query" C:\Users\Netzip\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\Server from MySQL.pwn(70) : error 017: undefined symbol "MoneyGiven" C:\Users\Netzip\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\Server from MySQL.pwn(70) : warning 215: expression has no effect C:\Users\Netzip\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\Server from MySQL.pwn(70) : error 001: expected token: ";", but found "]" C:\Users\Netzip\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\Server from MySQL.pwn(70) : error 029: invalid expression, assumed zero C:\Users\Netzip\Desktop\AAAAAAA necip\Antigrafh!\GTA - San Andreas\SAMP\gamemodes\Server from MySQL.pwn(70) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
pawn Код:
mysql_query("CREATE TABLE IF NOT EXISTS playerdata(user VARCHAR(24), password VARCHAR(41), score INT(20), money INT(20), IP VARCHAR(16) )"); // 48
MoneyGiven[playerid] = -1; // 70