Pawno Errors
#1

CMD
PHP код:
// Callbacks
forward OnQueryFinish(resultidextraidhandleid);
public 
OnQueryFinish(resultidextraidhandleid)
{
    new 
rowsfields;
    if(
resultid != SENDDATA_THREAD) {
        if(
extraid != INVALID_PLAYER_ID) {
            if(
g_arrQueryHandle{extraid} != -&& g_arrQueryHandle{extraid} != handleid) return 0;
        }
[
U][B][I][3036][/I][/B][/U] :        cache_get_data(rowsfieldsMainPipeline);
    }
    switch(
resultid)
    {
        case 
LOADMOTDDATA_THREAD:
        {
               for(new 
i;rows;i++)
            {
                new 
szResult[32];
                   
cache_get_field_content(i"gMOTD"GlobalMOTDMainPipeline);
                
cache_get_field_content(i"aMOTD"AdminMOTDMainPipeline);
                
cache_get_field_content(i"vMOTD"VIPMOTDMainPipeline);
                
cache_get_field_content(i"cMOTD"CAMOTDMainPipeline);
                
cache_get_field_content(i"pMOTD"pMOTDMainPipeline);
                
cache_get_field_content(i"ShopTechPay"szResultMainPipeline); ShopTechPay floatstr(szResult);
                break;
            }
        } 
Errors
PHP код:
D:\aDo7's Folder\de ely htt7t 3la el host 10l7l2013\gamemodes\NGRP_dfu.pwn(3028) : error 025: function heading differs from prototype
D:\aDo7'
s Folder\de ely htt7t 3la el host 10l7l2013\gamemodes\NGRP_dfu.pwn(3029) : error 025: function heading differs from prototype
D
:\aDo7's Folder\de ely htt7t 3la el host 10l7l2013\gamemodes\NGRP_dfu.pwn(3036) : error 012: invalid function call, not a valid address
D:\aDo7'
s Folder\de ely htt7t 3la el host 10l7l2013\gamemodes\NGRP_dfu.pwn(3036) : warning 215expression has no effect
D
:\aDo7's Folder\de ely htt7t 3la el host 10l7l2013\gamemodes\NGRP_dfu.pwn(3036) : warning 215: expression has no effect
D:\aDo7'
s Folder\de ely htt7t 3la el host 10l7l2013\gamemodes\NGRP_dfu.pwn(3036) : warning 215expression has no effect
D
:\aDo7's Folder\de ely htt7t 3la el host 10l7l2013\gamemodes\NGRP_dfu.pwn(3036) : error 001: expected token: ";", but found ")"
D:\aDo7'
s Folder\de ely htt7t 3la el host 10l7l2013\gamemodes\NGRP_dfu.pwn(3036) : error 029invalid expressionassumed zero
D
:\aDo7's Folder\de ely htt7t 3la el host 10l7l2013\gamemodes\NGRP_dfu.pwn(3036) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664              Copyright © 1997-2006, ITB CompuPhase
6 Errors. 
Please help me..
Reply
#2

Quote:
Originally Posted by aDo7
Посмотреть сообщение
CMD
PHP код:
// Callbacks
forward OnQueryFinish(resultidextraidhandleid);
public 
OnQueryFinish(resultidextraidhandleid)
{
        new 
rowsfields;
    if(
resultid != SENDDATA_THREAD
        {
        if(
extraid != INVALID_PLAYER_ID
                {
            if(
g_arrQueryHandle{extraid} != -&& g_arrQueryHandle{extraid} != handleid) return 0;
        }
[
U][B][I][3036][/I][/B][/U] :        cache_get_data(rowsfieldsMainPipeline);
    }
    switch(
resultid)
    {
        case 
LOADMOTDDATA_THREAD:
        {
               for(new 
i;rows;i++)
            {
                new 
szResult[32];
                   
cache_get_field_content(i"gMOTD"GlobalMOTDMainPipeline);
                
cache_get_field_content(i"aMOTD"AdminMOTDMainPipeline);
                
cache_get_field_content(i"vMOTD"VIPMOTDMainPipeline);
                
cache_get_field_content(i"cMOTD"CAMOTDMainPipeline);
                
cache_get_field_content(i"pMOTD"pMOTDMainPipeline);
                
cache_get_field_content(i"ShopTechPay"szResultMainPipeline); ShopTechPay floatstr(szResult);
                break;
            }
        } 
Errors
PHP код:
D:\aDo7's Folder\de ely htt7t 3la el host 10l7l2013\gamemodes\NGRP_dfu.pwn(3028) : error 025: function heading differs from prototype
D:\aDo7'
s Folder\de ely htt7t 3la el host 10l7l2013\gamemodes\NGRP_dfu.pwn(3029) : error 025: function heading differs from prototype
D
:\aDo7's Folder\de ely htt7t 3la el host 10l7l2013\gamemodes\NGRP_dfu.pwn(3036) : error 012: invalid function call, not a valid address
D:\aDo7'
s Folder\de ely htt7t 3la el host 10l7l2013\gamemodes\NGRP_dfu.pwn(3036) : warning 215expression has no effect
D
:\aDo7's Folder\de ely htt7t 3la el host 10l7l2013\gamemodes\NGRP_dfu.pwn(3036) : warning 215: expression has no effect
D:\aDo7'
s Folder\de ely htt7t 3la el host 10l7l2013\gamemodes\NGRP_dfu.pwn(3036) : warning 215expression has no effect
D
:\aDo7's Folder\de ely htt7t 3la el host 10l7l2013\gamemodes\NGRP_dfu.pwn(3036) : error 001: expected token: ";", but found ")"
D:\aDo7'
s Folder\de ely htt7t 3la el host 10l7l2013\gamemodes\NGRP_dfu.pwn(3036) : error 029invalid expressionassumed zero
D
:\aDo7's Folder\de ely htt7t 3la el host 10l7l2013\gamemodes\NGRP_dfu.pwn(3036) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664              Copyright © 1997-2006, ITB CompuPhase
6 Errors. 
Please help me..
You need edit line it

Код:
// 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, MainPipeline);
	}
	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;
			}
		}
Reply
#3

Quote:

You need edit line it

How to edit it?
Reply
#4

Any one can Help me?
Reply
#5

Show us the exact line where it gives the error...
Reply
#6

Quote:

Show us the exact line where it gives the error...

Here:

Quote:

cache_get_data(rows, fields, MainPipeline);

Reply
#7

Hmm...the function could be written wrong or something is wrong within it's parameters. Search "MainPipeline" through your GM and see what it is about. Also,is this GM off the web?
Reply
#8

Copy And Remplace It With This:

Код:
// 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, MainPipeline);
	}
	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;
			}
		}
Reply
#9

Quote:

the function could be written wrong or something is wrong within it's parameters

I don't think so, Bump any one?
Reply
#10

I Fixed it but i got another error while opening the server
Server logs:

Quote:

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3e, ©2005-2012 SA-MP Team

[14:59:33]
[14:59:34] Server Plugins
[14:59:34] --------------
[14:59:34] Loading plugin: streamer
[14:59:34]

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[14:59:34] Loaded.
[14:59:34] Loading plugin: sscanf
[14:59:34]

[14:59:34] ===============================

[14:59:34] sscanf plugin loaded.

[14:59:34] © 2009 Alex "******" Cole

[14:59:34] 0.3d-R2 500 Players "dnee"

[14:59:34] ===============================

[14:59:34] Loaded.
[14:59:34] Loading plugin: mysql
[14:59:34]

> MySQL plugin R7 successfully loaded.

[14:59:34] Loaded.
[14:59:34] Loading plugin: Whirlpool
[14:59:35]
[14:59:35] ==================
[14:59:35]
[14:59:35] Whirlpool loaded
[14:59:35]
[14:59:35] ==================
[14:59:35]
[14:59:35] Loaded.
[14:59:35] Loaded 4 plugins.

[14:59:35]
[14:59:35] Ban list
[14:59:35] --------
[14:59:35] Loaded: samp.ban
[14:59:35]
[14:59:35]
[14:59:35] Filterscripts
[14:59:35] ---------------
[14:59:35] Loading filterscript 'yom_buttons.amx'...
[14:59:35] Loading filterscript 'gcustom.amx'...
[14:59:36] Loaded 2 filterscripts.

[14:59:36] Script[gamemodes/NGRP_dfu.amx]: Run time error 17: "Invalid/unsupported P-code file format"
[14:59:36] Failed to load 'gamemodes/NGRP_dfu.amx' script.
[14:59:36] Number of vehicle models: 0

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)