19.05.2010, 16:17
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;
}
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]);
pawn Код:
CMD:cat(playerid, params[])
{
CatInfo[playerid][Cats] = 2;
return 1;
}
Why is this?
Yes it says bombs, Thats a example image from something else, But the cats say 0 aswell