mercredi 15 juillet 2015

Garry's Mod lua/SQLlite

Im currently working a basewars gamemode for the game, However ive run into a snag im trying to request a value from a TABLE but am completly stumpted as how to get it to register in a value to were lua can read it?

as far as ive gotten;

function AddCash( ply, Money, )
sql.Query( "SELECT Money FROM player_money" ) 

how would i got about getting lua to read the value than add an amount to it?

Aucun commentaire:

Enregistrer un commentaire