It says i have 83 cats!!!
#1

pawn Код:
CMD:cats(playerid, params[])
{
    new str[128];
    format(str, sizeof str, "You have %i cats", CatInfo[playerid][Cats]);
    SendClientMessage(playerid, colorWhite, str);
    return 1;
}
It says i have 83 cats?

pawn Код:
format(query, sizeof(query), "SELECT `cats` FROM `users` WHERE `username` = '%s'", GetName(playerid));
        samp_mysql_query(query);
        samp_mysql_store_result();
        samp_mysql_fetch_row(result);
       
    samp_mysql_get_field(result, CatInfo[playerid][Cats]);
Although if i type:

pawn Код:
CMD:cat(playerid, params[])
{
    CatInfo[playerid][Cats] = 2;
    return 1;
}
And then type /cats it says i have 2!!!

Why is this?



Yes it says bombs, Thats a example image from something else, But the cats say 0 aswell

Reply


Messages In This Thread
It says i have 83 cats!!! - by NewTorran - 19.05.2010, 16:17
Re: It says i have 83 cats!!! - by Sergei - 19.05.2010, 16:20
Re: It says i have 83 cats!!! - by WackoX - 19.05.2010, 16:58
Re: It says i have 83 cats!!! - by NewTorran - 19.05.2010, 17:05
Re: It says i have 83 cats!!! - by WackoX - 19.05.2010, 17:20
Re: It says i have 83 cats!!! - by NewTorran - 19.05.2010, 17:41

Forum Jump:


Users browsing this thread: 1 Guest(s)