Argument type mismatch
#1

Well i fixed all the previous errors but i can't find a way how to do that with this one...

PHP код:
C:\Users\WeeD\Desktop\SAMP\gamemodes\HTLS-RP.pwn(4169) : error 035argument type mismatch (argument 2)
C:\Users\WeeD\Desktop\SAMP\gamemodes\HTLS-RP.pwn(4170) : error 006must be assigned to an array
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase 
PHP код:
    // Destroy any previous ones created
    
DestroyPlayerModelPreviews(playerid);
    while(
!= SELECTION_ITEMS && itemat gTotalItems) {
        if(
linetracker == 0) {
            
BaseX DIALOG_BASE_X 25.0// in a bit from the box
            
BaseY += SPRITE_DIM_Y 1.0// move on the Y for the next line
        
}
>>>          
gSelectionItems[playerid][x] = CreateModelPreviewTextDraw(playeridgItemList[itemat], BaseXBaseYSPRITE_DIM_XSPRITE_DIM_Y);
>>>         
gSelectionItemsTag[playerid][x] = gItemList[itemat];
        
BaseX += SPRITE_DIM_X 1.0// move on the X for the next sprite
        
linetracker++;
        if(
linetracker == ITEMS_PER_LINElinetracker 0;
        
itemat++;
        
x++;
    } 
Reply
#2

Well if anyone has the same problem here is a fix.
PHP код:
          gSelectionItems[playerid][x] = CreateModelPreviewTextDraw(playeriditematBaseXBaseYSPRITE_DIM_XSPRITE_DIM_Y);
          
gSelectionItemsTag[playerid][x] = itemat
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)