25.10.2013, 04:48
This code always gives me one warning what Im doing wrong? Please take a look.
pawn Код:
command(selbiz, playerid, params[])
{
for(new i; i < MAX_BIZ; i++)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, bizinfo[i][benterx], bizinfo[i][bentery], houseinfo[i][benterz] ))
{
if(bizinfo[i][bowned] == 1)
{
if(strmatch(bizinfo[i][bowner], playerinfo[playerid][username]))
{
format(bizinfo[i][bowner], 24 ,"none one");
bizinfo[i][bowned] = 0;
new string[100];
format(string, sizeof(string),"You sold the bussiness for %d",bizinfo[i][bvalue]);
SendClientMessage(playerid, COLOR_GREEN, string);
new query[500];
format(query, sizeof(query),"UPDATE bizinfo SET bowned = %d, bowner = '%s' WHERE bid = %d",
bizinfo[i][bowned],
bizinfo[i][bowner],
bizinfo[i][bid]);
mysql_query(query);
GivePlayerMoney(playerid, houseinfo[i][hvalue]);
}
}
}
}
return 1;
}