• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Premium points NULL

Radium

Frozen-Hell.com
Joined
Nov 20, 2010
Messages
250
Reaction score
11
Location
England
Hi, Basically i have a working zaypay script but the issue I have is that when I pay with the SMS etc

The points are not added into the Premium_points column in Accounts.

The points are only added when the Premium_points column reads "0" or any number.
The problem i have is that when the accounts are made in-game the premium_points is set to NULL and that is the reason points are not added!

How can i change all of the NULL to 0? Also how do i make it so that they are 0 for every account register? I should make a onLogin script? I suck at luaSQL can anyone help me?

Like example if premium_points NULL then set to 0. however you do that in luaSQL
 
Execute in phpMyAdmin:
SQL:
ALTER TABLE `accounts` MODIFY `premium_points` INT( 11 ) NOT NULL DEFAULT '0';
 
Back
Top