11.11.2014, 00:38
Compile Errors:
Lines:
Код:
C:\Documents and Settings\Administrator\Desktop\SC-RP\gamemodes\roleplay.pwn(1663) : error 017: undefined symbol "mysql_ping" C:\Documents and Settings\Administrator\Desktop\SC-RP\gamemodes\roleplay.pwn(2082) : error 017: undefined symbol "foreach" C:\Documents and Settings\Administrator\Desktop\SC-RP\gamemodes\roleplay.pwn(2082) : error 029: invalid expression, assumed zero C:\Documents and Settings\Administrator\Desktop\SC-RP\gamemodes\roleplay.pwn(2082) : error 017: undefined symbol "i" C:\Documents and Settings\Administrator\Desktop\SC-RP\gamemodes\roleplay.pwn(2082) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
Код:
SQL_Connect() {
g_iHandle = mysql_connect(SQL_HOSTNAME, SQL_USERNAME, SQL_DATABASE, SQL_PASSWORD);
if (mysql_ping(g_iHandle) < 1) {
printf("[SQL] Connection to \"%s\" failed! Please check the connection settings...\a", SQL_HOSTNAME);
}
else {
printf("[SQL] Connection to \"%s\" passed!", SQL_HOSTNAME);
}
}
-----------------------------------------(Not in script, just separating code)---------------------------------------------
static
Float:fX,
Float:fY,
Float:fZ;
GetDynamicObjectPos(g_aFireObjects[0], fX, fY, fZ);
foreach (new i : Player)
{
if (GetFactionType(i) == FACTION_MEDIC)
{
Waypoint_Set(i, "Fire Scene", fX, fY, fZ);
}
}


