// 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;
}
[U][B][I][3036][/I][/B][/U] : 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;
}
}
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 215: expression 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 215: expression 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 029: invalid expression, assumed 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.
CMD
PHP код:
PHP код:
|
// 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; } }
You need edit line it |
Show us the exact line where it gives the error... |
cache_get_data(rows, fields, MainPipeline); |
// 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; } }
the function could be written wrong or something is wrong within it's parameters |
---------- 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 |