18.01.2019, 05:32
Well, I don't know what the problem is, I've tried reading stuffs about cache_get_row_count but still can't fix it somehow.
The warning:
Line:
PHP код:
forward CheckStorageTent(playerid);
public CheckStorageTent(playerid)
{
if(cache_get_row_count(handle) == 5)
{
return SendClientMessage(playerid, -1, "You own 5 tents already!");
}
else
{
new tentid = GetPlayerStorageTentID(playerid), _content[128], _query[190];
if(tInfo[tentid][tOwnerID] != -1) return SendClientMessage(playerid, -1, "* "COL_RED"This storage tent was already saved!") && ApplyAnimation(playerid, "CAMERA", "camcrch_to_camstnd", 5, 0, 0, 0, 0, 1000, 1);
if(pInfo[playerid][pzCoins] < 50) return SendClientMessage(playerid, -1, "* "COL_RED"You can't afford this, you have less than 50 zCoins!") && ApplyAnimation(playerid, "CAMERA", "camcrch_to_camstnd", 5, 0, 0, 0, 0, 1000, 1);
format(_content, sizeof(_content), ""COL_YELLOW"Private Storage Tent\n"COL_WHITE"Owner: "COL_GREEN"%s\n"COL_WHITE"Press '"COL_PINK"LALT"COL_WHITE"' to interact", pInfo[playerid][pUsername]);
tInfo[tentid][tOwnerID] = pInfo[playerid][pID];
strcpy(tInfo[tentid][tOwnerName], pInfo[playerid][pUsername], MAX_PLAYER_NAME);
UpdateDynamic3DTextLabelText(tInfo[tentid][tLabel], -1, _content);
pInfo[playerid][pzCoins] -= 50;
SendClientMessage(playerid, -1, "* "COL_DIALOG"You have saved this storage tent successfully");
ApplyAnimation(playerid, "CAMERA", "camcrch_to_camstnd", 5, 0, 0, 0, 0, 1000, 1);
mysql_format(handle, _query, sizeof(_query), "INSERT INTO `storage_tent` (`tentID`, `Owner ID`, `Owner Name`, `PosX`, `PosY`, `PosZ`, `Angle`) VALUES(%d, %d, '%e', %f, %f, %f, %f)", tentid, tInfo[tentid][tOwnerID], tInfo[tentid][tOwnerName], tInfo[tentid][tPosX], tInfo[tentid][tPosY], tInfo[tentid][tPosZ], tInfo[tentid][tAngle]);
mysql_tquery(handle, _query);
}
return 1;
}
Код:
warning 213: tag mismatch: expected tag none ("_"), but found "MySQL"
PHP код:
if(cache_get_row_count(handle) == 5)