Jump to content

Macros


XStormiest

Recommended Posts

Salutare tuturor, eu sunt XStormiest

Descriere:

Acesta este un include care adauga cateva comenzi (definiti) la scriptul vostru, momentan sunt putine dar sunt folositoare si va ajuta in anumite cazuri.

---------------------------------------------------------------------------------------------------------------

Macrouri:

  Modificari:

    in lock de stock functienume(parametri..) se foloseste Function:Numefunctie(parametrii)

    in lock de forward numefunctie(parametri...); public numefunctie(parametri...) se foloseste Callback:Numefunctie(parametrii)

    in loc de SendClientMessage se scrie SendMessage

    in loc de SendClientMessageToAll se scrie SenAllMessage

    in loc de ShowPlayerDialog se scrie SendDialog

  Adaugari:

    seconds, minutes, hours, days se pot folosi usor in timere.

    Val_Addition, Val_Substraction, Val_Multiply, Val_Division pentru a calcula mai usor

---------------------------------------------------------------------------------------------------------------

Folosire:

Callbacks

[pawn]

Callback:Test(playerid) { print("test"); // comment to remove this }

[/pawn]

Functions

[pawn]

Function:Test(playerid)  {print("test"); // comment to remove this }

[/pawn]

Timere:

[pawn]

SetTimer("Test1_Seconds", seconds(5), false);

SetTimer("Test2_Minutes", minutes(5), false);

SetTimer("Test1_Hours", hours(5), false);

SetTimer("Test1_Days", days(5), false);

[/pawn]

Am sa adaug mai multe din moment ce imi vin mai multe idei si voi mai updata acest include , fiindca poate fii foarte folositor pentru unii.

Click aici

Eu sunt nimeni. Dar prefer sa fiu un nimeni inconjurat de prieteni adevarati, decat un om faimos inconjurat de falsi.

Nu sunt un scripter perfect, nu sunt nici macar pe aproape, insa in in ciuda acestui fapt incerc sa invat sa le fac pe toate.

Link to comment
Share on other sites

Sincer ... eu unul nu cred ca are sens acest .inc ... pentru mine ce mi se pare folositor (putin doar ) in el este doar :

#define seconds(%0) %0 * 1000
#define minutes(%0) %0 * 1000 * 60
#define hours(%0) %0 * 1000 * 60 * 60
#define days(%0) %0 * 1000 * 60 * 60 * 24

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Link to comment
Share on other sites

Ai dreptate e mai mult folositor pentru mine, ca sa fac Scriptul sa arate mai bine.

Dar va pot ajuta si pe voi sa faceti acelasi lucru.

Fiindca sicncer e enervat sa scrii de fiecare data : forward, public iar stock arata urat :)

Cele pentru timere intr-adevar sunt folositoare

Restul doar o pierdere de timp..

Eu sunt nimeni. Dar prefer sa fiu un nimeni inconjurat de prieteni adevarati, decat un om faimos inconjurat de falsi.

Nu sunt un scripter perfect, nu sunt nici macar pe aproape, insa in in ciuda acestui fapt incerc sa invat sa le fac pe toate.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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.