Debugging my car loading
#1

Okay so i was working on my car loading wich doesnt work because of this:
pawn Код:
if(!sscanf(str, "d", integer))
What is wrong with this? The rest of the code:
pawn Код:
GetPlayerName(playerid, name, sizeof(name));
    format(str, sizeof(str), "SELECT `HouseID` FROM `Houses` WHERE `Owner`='%s'", name);
    mysql_query(str); //Send the query to the SQLite system integrated in SA:MP
    mysql_get_field("HouseID", str); //Gets the first field of the row returned (HouseID)
    if(!sscanf(str, "d", integer))
    {
        if(integer != 0) //Player has a house...
        {
Reply


Messages In This Thread
Bad queries - by thimo - 06.07.2013, 18:20
Re: Debugging my car loading - by thimo - 06.07.2013, 19:42
Re: Debugging my car loading - by SuperViper - 06.07.2013, 19:49
Re: Debugging my car loading - by Konstantinos - 06.07.2013, 19:51
Re: Debugging my car loading - by thimo - 06.07.2013, 20:03
Re: Debugging my car loading - by thimo - 06.07.2013, 20:29
Re: Debugging my car loading - by thimo - 07.07.2013, 08:14

Forum Jump:


Users browsing this thread: 1 Guest(s)