12.03.2017, 10:29
So I tried to running my one of my old script, compile it and got those errors
So those lines contains:
(2580 to 2583)
(8726 to 8728 ):
(8735 to 8738 ):
(8744 to 8760):
(8773 to 8783):
anddd (8796)
So you'll see it is mostly mysql problems, as I'm new to this I kinda not sure what went wrong. Any comments are really appreciated.
Thanks in advance!
PHP код:
C:\Users\pote2\Desktop\samp server\pawno\darkproject.pwn(2579) : error 017: undefined symbol "mysql"
C:\Users\pote2\Desktop\samp server\pawno\darkproject.pwn(2580) : error 017: undefined symbol "mysql_store_result"
C:\Users\pote2\Desktop\samp server\pawno\darkproject.pwn(2581) : error 017: undefined symbol "mysql_fetch_field"
C:\Users\pote2\Desktop\samp server\pawno\darkproject.pwn(2582) : error 017: undefined symbol "mysql_fetch_field"
C:\Users\pote2\Desktop\samp server\pawno\darkproject.pwn(2583) : error 017: undefined symbol "mysql_free_result"
C:\Users\pote2\Desktop\samp server\pawno\darkproject.pwn(8726) : error 035: argument type mismatch (argument 1)
C:\Users\pote2\Desktop\samp server\pawno\darkproject.pwn(8728) : error 035: argument type mismatch (argument 1)
C:\Users\pote2\Desktop\samp server\pawno\darkproject.pwn(8735) : error 035: argument type mismatch (argument 1)
C:\Users\pote2\Desktop\samp server\pawno\darkproject.pwn(8737) : error 035: argument type mismatch (argument 1)
C:\Users\pote2\Desktop\samp server\pawno\darkproject.pwn(8744) : error 035: argument type mismatch (argument 1)
C:\Users\pote2\Desktop\samp server\pawno\darkproject.pwn(8745) : error 017: undefined symbol "mysql_store_result"
C:\Users\pote2\Desktop\samp server\pawno\darkproject.pwn(8746) : error 017: undefined symbol "mysql_fetch_int"
C:\Users\pote2\Desktop\samp server\pawno\darkproject.pwn(8747) : error 017: undefined symbol "mysql_free_result"
C:\Users\pote2\Desktop\samp server\pawno\darkproject.pwn(8750) : error 035: argument type mismatch (argument 1)
C:\Users\pote2\Desktop\samp server\pawno\darkproject.pwn(8751) : error 017: undefined symbol "mysql_store_result"
C:\Users\pote2\Desktop\samp server\pawno\darkproject.pwn(8752) : error 017: undefined symbol "mysql_fetch_int"
C:\Users\pote2\Desktop\samp server\pawno\darkproject.pwn(8753) : error 017: undefined symbol "mysql_free_result"
C:\Users\pote2\Desktop\samp server\pawno\darkproject.pwn(8758) : error 035: argument type mismatch (argument 1)
C:\Users\pote2\Desktop\samp server\pawno\darkproject.pwn(8760) : error 035: argument type mismatch (argument 1)
C:\Users\pote2\Desktop\samp server\pawno\darkproject.pwn(8773) : error 035: argument type mismatch (argument 1)
C:\Users\pote2\Desktop\samp server\pawno\darkproject.pwn(8774) : error 017: undefined symbol "mysql_store_result"
C:\Users\pote2\Desktop\samp server\pawno\darkproject.pwn(8775) : error 017: undefined symbol "mysql_fetch_int"
C:\Users\pote2\Desktop\samp server\pawno\darkproject.pwn(8776) : error 017: undefined symbol "mysql_free_result"
C:\Users\pote2\Desktop\samp server\pawno\darkproject.pwn(8781) : error 035: argument type mismatch (argument 1)
C:\Users\pote2\Desktop\samp server\pawno\darkproject.pwn(8783) : error 035: argument type mismatch (argument 1)
C:\Users\pote2\Desktop\samp server\pawno\darkproject.pwn(8796) : error 035: argument type mismatch (argument 1)
(2580 to 2583)
PHP код:
mysql_store_result();
mysql_fetch_field("Banned" ,Data); PlayerInfo[playerid][pBanned] = strval(Data);
mysql_fetch_field("BanReason" ,Data); strmid(PlayerInfo[playerid][pBanReason], Data, 0, strlen(Data), 255);
mysql_free_result();
PHP код:
mysql_query(query);
format(query,sizeof(query),"UPDATE players SET SpawnInfo=%d WHERE id=%d",Spawn_LVNorth,PlayerInfo[playerid][pSQLID]);
mysql_query(query);
PHP код:
mysql_query(query);
format(query,sizeof(query),"UPDATE players SET SpawnInfo=%d WHERE id=%d",Spawn_LVSouth,PlayerInfo[playerid][pSQLID]);
mysql_query(query);
PHP код:
mysql_query(query);
mysql_store_result();
PlayerInfo[playerid][pLeader]=mysql_fetch_int();
mysql_free_result();
format(query,sizeof(query),"SELECT Member FROM players WHERE id=%d",PlayerInfo[playerid][pSQLID]);
mysql_query(query);
mysql_store_result();
PlayerInfo[playerid][pMember]=mysql_fetch_int();
mysql_free_result();
if(PlayerInfo[playerid][pLeader] > 0 || PlayerInfo[playerid][pMember]> 0)
{
format(query,sizeof(query),"UPDATE players SET Crashed=0 WHERE id=%d",PlayerInfo[playerid][pSQLID]);
mysql_query(query);
format(query,sizeof(query),"UPDATE players SET SpawnInfo=%d WHERE id=%d",Spawn_AtOffice,PlayerInfo[playerid][pSQLID]);
mysql_query(query);
PHP код:
mysql_query(query);
mysql_store_result();
PlayerInfo[playerid][pPhousekey]=mysql_fetch_int();
mysql_free_result();
if(PlayerInfo[playerid][pPhousekey] != 999999)
{
format(query,sizeof(query),"UPDATE players SET Crashed=0 WHERE id=%d",PlayerInfo[playerid][pSQLID]);
mysql_query(query);
format(query,sizeof(query),"UPDATE players SET SpawnInfo=%d WHERE id=%d",Spawn_AtHome,PlayerInfo[playerid][pSQLID]);
mysql_query(query);
PHP код:
mysql_query(query);
Thanks in advance!