Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

Posted

if ( strcmp ( cmdtext, "/stunt1", true ) == 0 )return AddTeleport ( playerid , "Stunt1", "~r~Stunt~g~1", 1838.4784, -1450.1213, 13.5628, 344.1002, 0, 0 );

cum pot so fac zcmd...


vreau sa inceapa asa  CMD:stunt1( playerid, params[ ] )

Thanks

468833_437698_362328_hiphop.jpg

2 answers to this question

Recommended Posts

Posted
De asemenea nu este respectata regula "Titlul topicului trebuie sa arate problema nu "Ajutor" "Salvati-ma" , acele topicuri ce au la titlu "Ajutor" sau alte chestii ce nu au legatura cu continutul vor fi sterse , postati la titlu problema voastra!
Posted

CMD:stunt1( playerid, params[ ] ) return AddTeleport ( playerid , "Stunt1", "~r~Stunt~g~1", 1838.4784, -1450.1213, 13.5628, 344.1002, 0, 0 );

Daca vrei sa fie /stunt 1 bagi cu sscanf ... exemplu:

CMD:stunt( playerid, params[ ] )
{
    if( sscanf( params, "i", params[ 0 ] ) ) return SendClientMessage( playerid, -1, "USAGE: < /stunt [ 1 - n ] >" );

    switch( params[ 0 ] )
    {
        case 1: AddTeleport ( playerid , "Stunt1", "~r~Stunt~g~1", 1838.4784, -1450.1213, 13.5628, 344.1002, 0, 0 );
        case 2: //urmatorul teleport
        //..........................//
        case n: //ultimul teleport
    }
    return 1;
}

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.