21.10.2014, 07:00
Hello , my problem is i can't load from db a int..
My db it looks like this
http://i.imgur.com/91grHC1.png
http://i.imgur.com/HlmkkN1.png
I tried to load it from database but instead of 5 , it comes 2 ... can somebody explain me how i load the correct int ? and how can i load & save into the database a player name .. and also a ip ?
Код:
stock IncarcaStatistica()
{
new Cache: Result = mysql_query( SQL, "SELECT * FROM `statistica`" ), Get[ 2 ];
cache_get_data( Get[ 0 ], Get[ 1 ], SQL );
new string[256];
for( new id; id < Get[ 0 ] ; id++ )
{
Rata = cache_get_field_content_int( id, "Rata", SQL );
}
cache_delete( Result );
}
http://i.imgur.com/91grHC1.png
http://i.imgur.com/HlmkkN1.png
I tried to load it from database but instead of 5 , it comes 2 ... can somebody explain me how i load the correct int ? and how can i load & save into the database a player name .. and also a ip ?

