Model Selection Error! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Model Selection Error! (
/showthread.php?tid=482353)
Model Selection Error! -
KingServerIRAN - 20.12.2013
Help me !
PHP код:
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(27) : error 017: undefined symbol "MAX_PLAYERS"
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(45) : error 017: undefined symbol "MAX_PLAYERS"
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(45) : error 009: invalid array size (negative, zero or out of bounds)
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(46) : error 017: undefined symbol "MAX_PLAYERS"
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(46) : error 009: invalid array size (negative, zero or out of bounds)
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(47) : error 017: undefined symbol "MAX_PLAYERS"
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(47) : error 009: invalid array size (negative, zero or out of bounds)
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(48) : error 017: undefined symbol "MAX_PLAYERS"
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(48) : error 009: invalid array size (negative, zero or out of bounds)
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(49) : error 017: undefined symbol "MAX_PLAYERS"
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(49) : error 009: invalid array size (negative, zero or out of bounds)
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(50) : error 017: undefined symbol "MAX_PLAYERS"
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(50) : error 009: invalid array size (negative, zero or out of bounds)
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(51) : error 017: undefined symbol "MAX_PLAYERS"
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(52) : error 017: undefined symbol "MAX_PLAYERS"
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(53) : error 017: undefined symbol "MAX_PLAYERS"
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(53) : error 009: invalid array size (negative, zero or out of bounds)
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(103) : error 017: undefined symbol "GetPVarInt"
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(101) : warning 203: symbol is never used: "playerid"
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(101 -- 110) : error 017: undefined symbol "GetPVarInt"
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(110) : error 017: undefined symbol "GetPVarInt"
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(110) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
21 Errors.
Re: Model Selection Error! -
KingServerIRAN - 20.12.2013
From line 27 to line 110
PHP код:
new gCustomList[MAX_PLAYERS][mS_CUSTOM_MAX_ITEMS];
#define mS_INVALID_LISTID mS_TOTAL_LISTS
#define mS_CUSTOM_LISTID (mS_TOTAL_LISTS+1)
#define mS_NEXT_TEXT "Next"
#define mS_PREV_TEXT "Prev"
#define mS_CANCEL_TEXT "Cancel"
#define mS_SELECTION_ITEMS 21
#define mS_ITEMS_PER_LINE 7
#define mS_DIALOG_BASE_X 75.0
#define mS_DIALOG_BASE_Y 130.0
#define mS_DIALOG_WIDTH 550.0
#define mS_DIALOG_HEIGHT 180.0
#define mS_SPRITE_DIM_X 60.0
#define mS_SPRITE_DIM_Y 70.0
new PlayerText:gCurrentPageTextDrawId[MAX_PLAYERS];
new PlayerText:gHeaderTextDrawId[MAX_PLAYERS];
new PlayerText:gBackgroundTextDrawId[MAX_PLAYERS];
new PlayerText:gNextButtonTextDrawId[MAX_PLAYERS];
new PlayerText:gPrevButtonTextDrawId[MAX_PLAYERS];
new PlayerText:gCancelButtonTextDrawId[MAX_PLAYERS];
new PlayerText:gSelectionItems[MAX_PLAYERS][mS_SELECTION_ITEMS];
new gSelectionItemsTag[MAX_PLAYERS][mS_SELECTION_ITEMS];
new gItemAt[MAX_PLAYERS];
#define mS_LIST_START 0
#define mS_LIST_END 1
new gLists[mS_TOTAL_LISTS][2]; // list information start/end index
#define mS_ITEM_MODEL 0
#define mS_ITEM_ROT_ZOOM_ID 1
new gItemList[mS_TOTAL_ITEMS][2];
new Float:gRotZoom[mS_TOTAL_ROT_ZOOM][4]; // Array for saving rotation and zoom info
new gItemAmount = 0; // Amount of items used
new gListAmount = 0; // Amount of lists used
new gRotZoomAmount = 0; // Amount of Rotation/Zoom informations used
//------------------------------------------------
stock mS_GetNumberOfPages(ListID)
{
new ItemAmount = mS_GetAmountOfListItems(ListID);
if((ItemAmount >= mS_SELECTION_ITEMS) && (ItemAmount % mS_SELECTION_ITEMS) == 0)
{
return (ItemAmount / mS_SELECTION_ITEMS);
}
else return (ItemAmount / mS_SELECTION_ITEMS) + 1;
}
//------------------------------------------------
stock mS_GetNumberOfPagesEx(playerid)
{
new ItemAmount = mS_GetAmountOfListItemsEx(playerid);
if((ItemAmount >= mS_SELECTION_ITEMS) && (ItemAmount % mS_SELECTION_ITEMS) == 0)
{
return (ItemAmount / mS_SELECTION_ITEMS);
}
else return (ItemAmount / mS_SELECTION_ITEMS) + 1;
}
//------------------------------------------------
stock mS_GetAmountOfListItems(ListID)
{
return (gLists[ListID][mS_LIST_END] - gLists[ListID][mS_LIST_START])+1;
}
//------------------------------------------------
stock mS_GetAmountOfListItemsEx(playerid)
{
return GetPVarInt(playerid, "mS_custom_item_amount");
}
//------------------------------------------------
stock mS_GetPlayerCurrentListID(playerid)
{
if(GetPVarInt(playerid, "mS_list_active") == 1) return GetPVarInt(playerid, "mS_list_id");
else return mS_INVALID_LISTID;
}
//------------------------------------------------
Re: Model Selection Error! -
KingServerIRAN - 20.12.2013
I'm sorry I had to add this
PHP код:
#define MAX_PLAYERS
and this
But this Error!
PHP код:
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(28) : error 001: expected token: ";", but found "-integer value-"
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(50) : error 009: invalid array size (negative, zero or out of bounds)
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(51) : error 009: invalid array size (negative, zero or out of bounds)
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(52) : error 009: invalid array size (negative, zero or out of bounds)
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(53) : error 009: invalid array size (negative, zero or out of bounds)
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(54) : error 009: invalid array size (negative, zero or out of bounds)
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(55) : error 009: invalid array size (negative, zero or out of bounds)
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(58) : error 009: invalid array size (negative, zero or out of bounds)
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(108) : error 012: invalid function call, not a valid address
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(108) : warning 215: expression has no effect
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(108) : warning 215: expression has no effect
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(108) : error 001: expected token: ";", but found ")"
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(108) : error 029: invalid expression, assumed zero
I:\New Folder (4)\New folder (3)\pawno\include\mSelection.inc(108) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
12 Errors.
Help Me
Re: Model Selection Error! -
KingServerIRAN - 20.12.2013
Up...
Re: Model Selection Error! -
SilentSoul - 20.12.2013
It semms like you're using mselection , if i am right why are you trying to compile that's just an include you have to paste it on samp folder\pawno\include you don't have to compile that ! that file 'mselection.inc' any file got .inc at ending you have to notice that this is an include only ! you can use functions and call backs later !
Re-read functions , callbacks :
https://sampforum.blast.hk/showthread.php?tid=407045
Re: Model Selection Error! -
KingServerIRAN - 20.12.2013
Oh...! Tnx Man
Fixid