02.12.2011, 10:04
Hey guys, frist thread i think. im giving Pawno scripting ago.
My error: J:\SAMP\gamemodes\new.pwn(56) : error 017: undefined symbol "connectDB"
Im trying to create a Function but for the life of me, i cant seem it get it running. Like i said im 100% new to this.
Sorry for my noobieness..
Thanks guys.
My error: J:\SAMP\gamemodes\new.pwn(56) : error 017: undefined symbol "connectDB"
Код:
connectDB() { mysql_connect("127.0.0.1", "root", "sa-mp", "ascent"); if(!mysql_ping()) { print("MYSQL: Connection is alive!"); return 1; } else { print("MYSQL: Connection is dead."); return 1; } return 1; } //My functions stop here.. public OnFilterScriptExit() { return 1; } #else main() { connectDB(); }
Sorry for my noobieness..
Thanks guys.