Compile help[REP+}
#1

Hello Guys.I recently receive a script thats mysql based.How can i compile it?When i compile i receive MySql errors.
Reply
#2

Show us the code and we will try to help you

Note: If you use new NGRP v2.3.308 gamemode we can't help you
Reply
#3

Quote:
Originally Posted by RenSoprano
Посмотреть сообщение
Show us the code and we will try to help you

Note: If you use new NGRP v2.3.308 gamemode we can't help you
v2.3.349? Can you help with this one?

Thats the errors i get: 26 of them
pawn Код:
ndefined symbol "cache_get_field_content"
Reply
#4

Upgrade your mysql plugin into mysql plugin r7
Reply
#5

pawn Код:
(3028) : error 025: function heading differs from prototype
(3030) : error 025: function heading differs from prototype
(3037) : error 001: expected token: ";", but found ")"
(3037) : error 029: invalid expression, assumed zero
After updating the plugin.
Reply
#6

Your MySql function is differerned from this

Код:
cache_get_field_content( row, const field_name[], dest[] [, connectionHandle = 1] )
Reply
#7

Quote:
Originally Posted by RenSoprano
Посмотреть сообщение
Your MySql function is differerned from this

Код:
cache_get_field_content( row, const field_name[], dest[] [, connectionHandle = 1] )
Any ideas whats the new one sir? On r7 it says thats the function aswell.
Reply
#8

Show us your code and I will fix it

This forum requires that you wait 120 seconds between posts. Please try again in 48 seconds.
Reply
#9

Quote:
Originally Posted by RenSoprano
Посмотреть сообщение
Show us your code and I will fix it

This forum requires that you wait 120 seconds between posts. Please try again in 48 seconds.
pawn Код:
// Callbacks
forward OnQueryFinish(resultid, extraid, handleid);

public OnQueryFinish(resultid, extraid, handleid)
{
    new rows, fields;
    if(resultid != SENDDATA_THREAD) {
        if(extraid != INVALID_PLAYER_ID) {
            if(g_arrQueryHandle{extraid} != -1 && g_arrQueryHandle{extraid} != handleid) return 0;
        }
        cache_get_data(rows, fields);
    }
    switch(resultid)
    {
        case LOADMOTDDATA_THREAD:
        {
            for(new i;i < rows;i++)
            {
                new szResult[32];
                cache_get_field_content(i, "gMOTD", GlobalMOTD, MainPipeline);
                cache_get_field_content(i, "aMOTD", AdminMOTD, MainPipeline);
                cache_get_field_content(i, "vMOTD", VIPMOTD, MainPipeline);
                cache_get_field_content(i, "cMOTD", CAMOTD, MainPipeline);
                cache_get_field_content(i, "pMOTD", pMOTD, MainPipeline);
                cache_get_field_content(i, "ShopTechPay", szResult, MainPipeline); ShopTechPay = floatstr(szResult);
                break;
            }
        }
        case LOADUSERDATA_THREAD:
        {
            if(IsPlayerConnected(extraid))
            {
                new szField[MAX_PLAYER_NAME], szResult[64];

                for(new row;row < rows;row++)
                {
                    cache_get_field_content(row, "Username", szField, MainPipeline);

                    if(strcmp(szField, GetPlayerNameExt(extraid), true) != 0)
                    {
                        return 1;
                    }
                    cache_get_field_content(row, "id", szResult, MainPipeline); PlayerInfo[extraid][pId] = strval(szResult);
                    cache_get_field_content(row, "Online", szResult, MainPipeline); PlayerInfo[extraid][pOnline] = strval(szResult);
And like this till all the reg system stuff end.
Reply
#10

WoW This Is NG:RP script i knew it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)