Another SQLite Problem...
#1

Well.. I have this command:
pawn Код:
CMD:freeze( playerid, params[ ] )
{
    new u_P;
    if( unformat( params, "u", u_P ) )                  return Send_Usage( playerid, "[PlayerID]", "Will freeze a specified player, he will cannot freeze-evade!" );
   
    if( u_P  == ( 0xFFFF ) )                            return eInfo( playerid, "Player not connected" );
    if( u_P  == playerid )                              return eInfo( playerid, "You cannot freeze yourself" );
    if( Bit1_Get( g_iBit1_p_DATA[ p_Frozen ], u_P ) )   return eInfo( playerid, "Player is already frozen" );
   
    FreezePlayer( u_P );

    return ( 1 );
}
And this function:
pawn Код:
FreezePlayer( playerid )
{
    new Query[ 256 ];
    format( Query, sizeof Query, "INSERT INTO `Frozen` VALUES('%s', '%s')", GetPlayerIpEx( playerid ), pName( playerid ) );
    DB::query( g_dbKeptAlive, Query );

    Bit1_Set( g_iBit1_p_DATA[ p_Frozen ], playerid, 1 );
    TogglePlayerControllable( playerid, false );
   
    return ( 1 );
}
And the command doesn't write in the Database, any ideas why ?
Reply


Messages In This Thread
Another SQLite Problem... - by aRoach - 16.04.2012, 13:31
Re: Another SQLite Problem... - by [MG]Dimi - 16.04.2012, 13:45
Re: Another SQLite Problem... - by aRoach - 16.04.2012, 13:49
Re: Another SQLite Problem... - by SuperViper - 16.04.2012, 14:28
Re: Another SQLite Problem... - by aRoach - 16.04.2012, 15:47
Re: Another SQLite Problem... - by aRoach - 16.04.2012, 16:41
Re: Another SQLite Problem... - by iggy1 - 16.04.2012, 17:06
Re: Another SQLite Problem... - by aRoach - 16.04.2012, 17:09
Re: Another SQLite Problem... - by iggy1 - 16.04.2012, 17:10
Re: Another SQLite Problem... - by aRoach - 16.04.2012, 17:11

Forum Jump:


Users browsing this thread: 3 Guest(s)