jeudi 14 juillet 2016

[Ajuda] Seleção de itens em textdraw

Eu estou fazendo um sistema de inventário, só que, eu preciso fazer com que dê para selecionar todos os itens possíveis disponíveis no slot do inventário, que são 50 slots. O meu problema é que consigo selecionar os 10 primeiros itens, mas não consigo elaborar uma lógica para selecionar os próximos 10 itens. O código segue da seguinte forma:

PHP Code:

for(new 414; ++x)
{
    if(
playertextid == inventoryText[playerid][x])
    {
        switch(
pageInv[playerid])
            {
                case 
1:
                {
                    
SetPVarInt(playerid"selectedItem"4);
                    
PlayerTextDrawSetPreviewModel(playeridinventoryText[playerid][17],  invItemID[playerid][4] == 18631 invItemID[playerid][4]);
                    
PlayerTextDrawShow(playeridinventoryText[playerid][17]);
                }
            }
    }

OBS: Eu tentei usar switch mas não consegui ter sucesso. Os slots vão de 0 a 49.

This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at http://ift.tt/jcXqJW.
Recommended article from FiveFilters.org: Most Labour MPs in the UK Are Revolting.



[Ajuda] Seleção de itens em textdraw

Aucun commentaire:

Enregistrer un commentaire