Jump to content
  • 0

Question

Posted (edited)

Problemă întâlnită (descriere): am aceast stock si nu merge sa pun mai mult de 9 attach uri pe player
Ero(area / rile) / warning-(ul / urile): fara erori
Liniile de cod / sursa / script-ul: stock CountAttachedObjects(playerid)
{
    new count;
    for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
    {
        if(IsPlayerAttachedObjectSlotUsed(playerid, i)) count++;
    }
    return count;
}

 

si la comanda /santa

 

    if(!strcmp(cmdtext, "/santa", true))
    {
        SetPlayerAttachedObject(playerid, i,19065, 2, 0.120000, 0.040000, -0.003500, 0, 100, 100, 1.4, 1.4, 1.4);
        return SendClientMessage(playerid, 0x00FF00FF, "Santa hat equipped!");
    }
Imagini / Video (optional):
Aţi încercat să rezolvaţi singur?: am schimbat din i  in 12 slot care nu este utilizat de mine

Edited by Mister

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn

2 answers to this question

Recommended Posts

Posted

Defapt poti pune maxim 10 obiecte pe player , atatea obiecte poti pune pe player din cate stiu eu,nu ai cum sa pui mai multe.

 

 

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.