01.01.2017, 18:38
i am trying to compile a FS using mysql and i got those problems:
This the other code in same script:
.
PHP код:
C:\Documents and Settings\Administrateur\Bureau\Nouveau dossier\RC-Gates.pwn(318) : error 017: undefined symbol "mysql_affected_rows"
C:\Documents and Settings\Administrateur\Bureau\Nouveau dossier\RC-Gates.pwn(339) : error 017: undefined symbol "mysql_affected_rows"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
PHP код:
forward thread_DeleteGate(playerid, gateid);
public thread_DeleteGate(playerid, gateid)
{
if(mysql_affected_rows() > 0) //line 318
{
if(playerid != INVALID_PLAYER_ID) SendClientMessage(playerid, -1, "SERVER: The gate was deleted successfully.");
for(new i = 0; i < sizeof(gateInfo); i++)
{
DestroyDynamicObject(gateInfo[i][gateObjID]);
Iter_Remove(gateObjects, gateInfo[i][gateObjID]);
for(new x; enumGateInformation:x < enumGateInformation; x++) gateInfo[gateid][enumGateInformation:x] = 0;
break;
}
}
else if(playerid != INVALID_PLAYER_ID) SendClientMessage(playerid, -1, "SERVER: The gate was NOT deleted successfully, please contact a developer.");
return 1;
}
PHP код:
forward thread_CreateGate(playerid);
public thread_CreateGate(playerid)
{
if(playerid != INVALID_PLAYER_ID)
{
if(mysql_affected_rows() > 0) SendClientMessage(playerid, -1, "SERVER: The gate was created successfully.");
else SendClientMessage(playerid, -1, "SERVER: The gate was NOT created successfully, please contact a developer.");
}
return 1;
}