Szerző Téma: Parancs alá parancsot.  (Megtekintve 482 alkalommal)

Parancs alá parancsot.
« Dátum: 2013. Augusztus 05. - 11:52:36 »
0 Show voters
Sziasztok
Szeretnék egy módba bele tenni több parncsot de mindig hibát ír :( itt a parancs (Nem rég kezdtem tanulni a pawno-t)
 
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(\"/help\", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 111111, \"Ha valami van szólj az adminoknak.\");
return 1;
}
return 0;
}

 

#include <a_samp>
#if defined FILTERSCRIPT
 
public OnFilterScriptInit()
print(\"\\n--------------------------------------\");
print(\"[HUN]GravitonV1.0\");
print(\"--------------------------------------\\n\");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print(\"\\n----------------------------------\");
print(\"[HUN]GravitonV1.0\");
print(\"----------------------------------\\n\");
}
#endif
public OnGameModeInit()
{
// Don\'t use these lines if it\'s a filterscript
SetGameModeText(\"[HUN]GravitonV1.0\");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(\"/help\", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, 111111, \"Ha valami van szólj az adminoknak.\");
return 1;
}
return 0;
}
if(!strcmp(cmdtext, \"/help\", true))
{
SendClientMessage(playerid, 0xFFFFFFFF, \"Üzi\");
return 1;
}
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, 880000, \"Üdvözöllek közztünk!\");
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
    SendClientMessage(playerid, 880000, \"Várunk vissza\");
return 1;
}

 És ez itt az egész.

Nem elérhető Cappsy

  • Adminisztrátor
  • 2754
    • Profil megtekintése
Parancs alá parancsot.
« Válasz #1 Dátum: 2013. Augusztus 05. - 12:38:49 »
0 Show voters
Remélem érthetõ :)
 
#include <a_samp>
#if defined FILTERSCRIPT
 
public OnFilterScriptInit()
        print(\"\\n--------------------------------------\");
        print(\"[HUN]GravitonV1.0\");
        print(\"--------------------------------------\\n\");
        return 1;
}
public OnFilterScriptExit()
{
        return 1;
}
#else
main()
{
        print(\"\\n----------------------------------\");
        print(\"[HUN]GravitonV1.0\");
        print(\"----------------------------------\\n\");
}
#endif
public OnGameModeInit()
{
        // Don\'t use these lines if it\'s a filterscript
        SetGameModeText(\"[HUN]GravitonV1.0\");
        AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
        return 1;
}
public OnPlayerText(playerid, text[])
{
        return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])// Az OnPlayerCommandText Függvény
{//A függvény nyitása
//Az e fölötti részt nem kell törölni ne másolj bele semmit
if (strcmp(\"/help\", cmdtext, true, 10) == 0)
{//help parancs nyitás
SendClientMessage(playerid, 111111, \"Ha valami van szólj az adminoknak.\");
return 1;//help parancs returnja
}//Help parancs zárás
if(!strcmp(cmdtext, \"/help\", true))// help parancs
{//help parancs nyitás
SendClientMessage(playerid, 0xFFFFFFFF, \"Üzi\");
return 1;//help parancs zárás
}//help parancs returnja
/* Kövi parancs
if(!strcmp(cmdtext, \"/parancs\", true))
{
SendClientMessage(playerid, 0xFFFFFFFF, \"és így tovább\");
return 1;
}
*/
//Az ez utáni részt nem kell törölni ne másolj bele semmit
return 0;//függvény returnja
}//fügvény zárása
public OnPlayerConnect(playerid)
{
        SendClientMessage(playerid, 880000, \"Üdvözöllek közztünk!\");
        return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
    SendClientMessage(playerid, 880000, \"Várunk vissza\");
    return 1;
}

Parancs alá parancsot.
« Válasz #2 Dátum: 2013. Augusztus 05. - 14:40:05 »
0 Show voters
Isten Áldja uram :) :thumbsup: <3 ^-^

Dupla hozzászólás automatikusan összefûzve. ( 2013. Augusztus 05. - 14:51:29 )

Ha esetleg lenne ötleted mit rakjak bele mond bátran :) kezdõ vagyok megfogadom a tanácsod :)
Még majd teleportokat akarok bele rakni :)
meg kocsikat.
[mod]Ez nem a hirdetés helye. IP eltávolítva.[/mod]
« Utoljára szerkesztve: 2013. Augusztus 05. - 15:29:22 írta Benceee »

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal