Jump to content
  • 0

Attached Objects


Mister

Question

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
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

pai e pe wikipedia acest stock care cica sunt nelimitate teoretic.

 

http://wiki.sa-mp.com/wiki/IsPlayerAttachedObjectSlotUsed

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.