29.01.2016, 10:57
Код:
./includes/mysql.pwn(814) : warning 213: tag mismatch ./includes/mysql.pwn(814) : warning 215: expression has no effect ./includes/mysql.pwn(814) : error 001: expected token: ";", but found "[" ./includes/mysql.pwn(814) : error 029: invalid expression, assumed zero ./includes/mysql.pwn(814) : warning 215: expression has no effect ./includes/mysql.pwn(814) : error 001: expected token: ";", but found "]" ./includes/mysql.pwn(814) : fatal error 107: too many error messages on one line
PHP код:
case LOADCAMP_THREAD:
{
if(IsPlayerConnected(extraid))
{
new i = 0;
while(i < rows)
{
if(i >= MAX_KAMP)
break;
new szResult[32];
cache_get_field_content(i, "Owner", szResult, MainPipeline);
CampInfo[extraid][i][cOwner] = strval(szResult); line 814
cache_get_field_content(i, "id", szResult, MainPipeline);
CampInfo[extraid][i][cID] = strval(szResult);
if(CampInfo[extraid][i][cID] != 0)
{
cache_get_field_content(i, "cPosX", szResult, MainPipeline);
CampInfo[extraid][i][cPosition][0] = floatstr(szResult);
cache_get_field_content(i, "cPosY", szResult, MainPipeline);
CampInfo[extraid][i][cPosition][1] = floatstr(szResult);
cache_get_field_content(i, "cPosZ", szResult, MainPipeline);
CampInfo[extraid][i][cPosition][2] = floatstr(szResult);
cache_get_field_content(i, "cPosAngle", szResult, MainPipeline);
CampInfo[extraid][i][cPosition][3] = floatstr(szResult);
cache_get_field_content(i, "cLock", szResult, MainPipeline);
CampInfo[extraid][i][cLocked] = strval(szResult);
cache_get_field_content(i, "cVirtualWorld", szResult, MainPipeline);
CampInfo[extraid][i][cVW] = strval(szResult);
new szLog[128];
format(szLog, sizeof(szLog), "[CAMPLOAD] [User: %s(%i)] [Model: %d] [Vehicle ID: %d]", GetPlayerNameEx(extraid), PlayerInfo[extraid][pId]);
Log("logs/vehicledebug.log", szLog);
}
else
{
new query[128];
//format(query, sizeof(query), "DELETE FROM `vehicles` WHERE `id` = '%d'", CampInfo[extraid][i][pvSlotId]);
mysql_function_query(MainPipeline, query, false, "OnQueryFinish", "ii", SENDDATA_THREAD, extraid);
}
i++;
}
}
}