17.07.2016, 23:30
Hi. When I using this code its works great:
I wana that code would add not 100 xp, but random. So i have this code, but it doesn't work..
Why? : /
Code:
Player.exp[pid]+=100; mysql_function_query(DbHandle, f("UPDATE players SET exp = (exp+'100') WHERE Name = '%s'",GetPlayerNameEx(pid)), true, "SendQuery", "");
HTML Code:
new eexp = RandomEx(90,300); Player.exp[pid]+=eexp; mysql_function_query(DbHandle, f("UPDATE players SET exp = (exp+'eexp') WHERE Name = '%s'",GetPlayerNameEx(pid)), true, "SendQuery", "");