MYSQL Define.
#1

i am trying to compile a FS using mysql and i got those problems:
PHP код:
C:\Documents and Settings\Administrateur\Bureau\Nouveau dossier\RC-Gates.pwn(318) : error 017undefined symbol "mysql_affected_rows"
C:\Documents and Settings\Administrateur\Bureau\Nouveau dossier\RC-Gates.pwn(339) : error 017undefined symbol "mysql_affected_rows"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
2 Errors

This the other code in same script:
PHP код:
forward thread_DeleteGate(playeridgateid);
public 
thread_DeleteGate(playeridgateid)
{
    if(
mysql_affected_rows() > 0)  //line 318
    
{
        if(
playerid != INVALID_PLAYER_IDSendClientMessage(playerid, -1"SERVER: The gate was deleted successfully.");
        
        for(new 
0sizeof(gateInfo); i++)
        {
            
DestroyDynamicObject(gateInfo[i][gateObjID]);
            
Iter_Remove(gateObjectsgateInfo[i][gateObjID]);
            for(new 
xenumGateInformation:enumGateInformationx++) gateInfo[gateid][enumGateInformation:x] = 0;
            break;
        }
    }
    else if(
playerid != INVALID_PLAYER_IDSendClientMessage(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() > 0SendClientMessage(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;

Reply
#2

Change:

PHP код:
mysql_affected_rows 
to:

PHP код:
mysql_num_rows 
Reply
#3

i got this again :
PHP код:
C:\Documents and Settings\Administrateur\Bureau\Nouveau dossier\RC-Gates.pwn(318) : error 017undefined symbol "mysql_num_rows"
C:\Documents and Settings\Administrateur\Bureau\Nouveau dossier\RC-Gates.pwn(339) : error 017undefined symbol "mysql_num_rows"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
2 Errors

Reply
#4

Download old version of mysql plugin
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)