Converted 0.3 to 0.4

Started by Finch, Apr 21, 2015, 12:40 PM

Previous topic - Next topic

Finch

i haert warchief to 0.4 and i add all system in it but when i quit stats are not save it say on console GetStats index IsReg does not exist

this is getstats
function SaveStats( player )
{
       try{
   local id = player.ID;
   if ( status[ id ].IsReg == true )
   {
       QuerySQL( db, "UPDATE Account SET Kills='" + status[ id ].Kills + "', Deaths='" + status[ player.ID ].Deaths + "', Cash='" + status[ id ].Cash + "', Bank='" + status[ id ].Bank + "', Joins='" + status[id].Joins + "' WHERE Name='" + player.Name.tolower() + "'" );
   print( "Saved Stats of Player " + player.Name + "[" + player.ID + "]" );
   status[ id ] = null;
   }
   }
   catch(e) print( "Save Stats Error: " + e );
}
Beztone is a scripter but he is too stupid

EK.IceFlake

Now some playerinfo class? PS: You dont deserve to be a scripter.

Finch

playerinfo your mean accinfo?
Beztone is a scripter but he is too stupid

Mashreq

Do you save your classes as PlayerInfo?
If yes are you sure that you are loading it like this? onPlayerJoin do you have this function?

status[player.ID] = PlayerInfo();

Finch

no steam this line is not in my svr onplayerjoin but when i add this onplayerinfo it bug script so i remove it
Beztone is a scripter but he is too stupid

Sebastian

and now Finch will "convert" warchiefs to 0.4, and release it. Next day, 10x Warchief will be online in the masterlist.