errors
#1

C:\Documents and Settings\Administrator\Desktop\ExRP\gamemodes\NGRP _dfu.pwn(302 : error 025: function heading differs from prototype

C:\Documents and Settings\Administrator\Desktop\ExRP\gamemodes\NGRP _dfu.pwn(3029) : error 025: function heading differs from prototype

Quote:

// Callbacks
"line3028" forward OnQueryFinish(resultid, extraid, handleid);
"line3029" public OnQueryFinish(resultid, extraid, handleid)
{

C:\Documents and Settings\Administrator\Desktop\ExRP\gamemodes\NGRP _dfu.pwn(3036) : error 012: invalid function call, not a valid address
C:\Documents and Settings\Administrator\Desktop\ExRP\gamemodes\NGRP _dfu.pwn(3036) : warning 215: expression has no effect

C:\Documents and Settings\Administrator\Desktop\ExRP\gamemodes\NGRP _dfu.pwn(3036) : warning 215: expression has no effect

C:\Documents and Settings\Administrator\Desktop\ExRP\gamemodes\NGRP _dfu.pwn(3036) : warning 215: expression has no effect

C:\Documents and Settings\Administrator\Desktop\ExRP\gamemodes\NGRP _dfu.pwn(3036) : error 001: expected token: ";", but found ")"

C:\Documents and Settings\Administrator\Desktop\ExRP\gamemodes\NGRP _dfu.pwn(3036) : error 029: invalid expression, assumed zero

C:\Documents and Settings\Administrator\Desktop\ExRP\gamemodes\NGRP _dfu.pwn(3036) : fatal error 107: too many error messages on one line

Quote:

"line3036" cache_get_data(rows, fields, MainPipeline);
}

Reply
#2

Is the MySQL version you're using R7 and above? It seems to use an old include of a_mysql but a script with threaded queries.

Open a_mysql.inc from pawno\include and go at the bottom of it. You'll see the line:
pawn Код:
forward OnQueryFinish( ... /* blabla.. */ );
Get the parameters from there.
Reply
#3

forward OnQueryFinish(query[], resultid, extraid, connectionHandle);
Reply
#4

So, replace:
pawn Код:
forward OnQueryFinish(resultid, extraid, handleid);
public OnQueryFinish(resultid, extraid, handleid)
with:
pawn Код:
public OnQueryFinish(query[], resultid, extraid, connectionHandle)
at your .pwn file.

By the way, what version do you use?
Reply
#5

new erros

C:\Documents and Settings\Administrator\Desktop\ExRP\gamemodes\NGRP _dfu.pwn(1339) : error 017: undefined symbol "GetPlayerNameExt"
C:\Documents and Settings\Administrator\Desktop\ExRP\gamemodes\NGRP _dfu.pwn(3034) : error 017: undefined symbol "handleid"
C:\Documents and Settings\Administrator\Desktop\ExRP\gamemodes\NGRP _dfu.pwn(3034) : error 079: inconsistent return types (array & non-array)




i don't know what's my version -__-
Reply
#6

mind give me your skype? so i can talk to you?
Reply
#7

I don't know what exactly GetPlayerNameExt should do, but it should be added as a function.
pawn Код:
stock GetPlayerNameExt( /* some parameters here, most likely the "playerid" */ )
{
    // some code
}
You must declared a variable as global one (under includes, defines) to store the mysql connection id.

Where do you store it when you're using mysql_connect function? Use that variable instead.

It's better to show us few lines close (included line 3034 too).
Reply
#8

mind give me your skype so i can give you the whole script and fix it ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)