Help me please
#3

In the enum it's

pawn Код:
pHouseName[24],
In the /createhouse command it's

pawn Код:
for(new i = 0; i < MAX_HOUSES; i++)
{
    Houses[NewHouseID][pHouseName] = format(string, 24, "House %i.", i);
}
In the AddHousesToFile its

pawn Код:
stock AddHousesFromFiles()
{
    new
        HouseName[24]
In another part of the addhousesfromfile it's

pawn Код:
while(mysql_fetch_row(Str))
        {
            sscanf(Str, "s[24]s[24]dffffff", HouseName, HouseOwner, HousePrice, ExteriorX, ExteriorY, ExteriorZ, InteriorX, InteriorY, InteriorZ);
In AddHouseToFile it's

pawn Код:
stock AddHouseToFile(HouseName, HouseOwner, HousePrice, Float:ExteriorX, Float:ExteriorY, Float:ExteriorZ, Float:InteriorX, Float:InteriorY, Float:InteriorZ)
{
    new
        Query[1024];

    format(Query, sizeof(Query), "INSERT INTO `houses` (HouseName[24], HouseOwner[24], HousePrice, ExteriorX, ExteriorY, ExteriorZ, InteriorX, InteriorY, InteriorZ) VALUES(%s[24], %s[24, %d, %f, %f, %f, %f, %f, %f)",
    HouseName, HouseOwner, HousePrice, ExteriorX, ExteriorY, ExteriorZ, InteriorX, InteriorY, InteriorZ);

    mysql_query(Query);
    mysql_free_result();
    return 1;
}
Reply


Messages In This Thread
Help me please - by iGetty - 13.01.2012, 19:29
Re: Help me please - by CmZxC - 13.01.2012, 19:44
Re: Help me please - by iGetty - 13.01.2012, 19:53
Re: Help me please - by CmZxC - 13.01.2012, 19:55
Re: Help me please - by iGetty - 13.01.2012, 19:56
Re: Help me please - by CmZxC - 13.01.2012, 20:06
Re: Help me please - by iGetty - 13.01.2012, 20:13
Re: Help me please - by CmZxC - 13.01.2012, 20:14
Re: Help me please - by iGetty - 13.01.2012, 20:21
Re: Help me please - by CmZxC - 13.01.2012, 20:22

Forum Jump:


Users browsing this thread: 2 Guest(s)