Jump to content

Gvar plugin


[Pawn]

Recommended Posts

Buna ziua/seara tuturor

[table]

Ce voi prezenta in acest tutorial ?

In acest tutorial va voi explica totul despre plugin-ul "gvar"

[/table]

[table]

Ce este "gvar" si ce face acesta ?

Acest plugin este o extensie a unei variabile per-jucator.Acesta ajuta foarte mult prin urmatoarele caracteristici:

-Timpul de executie este mult mai rapid

-Este memorat pana la stergerea cu ajutorul "DeleteGVar"

[/table]

Intrebari recente din partea playeri-lor pe care le-am primit pe Y/M / PM

[table]

GVar este folosit numai pe MySQL sau si pe SqLite ?

GVar este folosit in general pe MySql.Rareori lumea o foloseste si pe SqLite.De ce ?

SqLite este doar un tip mai mic de baza de date unde nu ai aceleasi permisiuni si beneficii ca la MySQL.SqLite este folosita in general in testarea mult mai rapida.Concluzia este ca GVar se poate folosi si pe SqLite dar nu este total recomandat.

[/table]

Defines,Natives,Instructiuni

Defines:

[pawn]#define GLOBAL_VARTYPE_NONE (0)

#define GLOBAL_VARTYPE_INT (1)

#define GLOBAL_VARTYPE_STRING (2)

#define GLOBAL_VARTYPE_FLOAT (3)[/pawn]

Natives

[pawn]native SetGVarInt(const name[], value, id = 0);

native GetGVarInt(const name[], id = 0);

native SetGVarString(const name[], const value[], id = 0);

native GetGVarString(const name[], dest[], maxlength = sizeof dest, id = 0);

native SetGVarFloat(const name[], Float:value, id = 0);

native Float:GetGVarFloat(const name[], id = 0);

native DeleteGVar(const name[], id = 0);

native GetGVarsUpperIndex(id = 0);

native GetGVarNameAtIndex(index, dest[], maxlength = sizeof dest, id = 0);

native GetGVarType(const name[], id = 0);[/pawn]

Instructiuni

1.Creati un director nou numit "plugins" iar daca il aveti deja tot ce trebuie sa faceti este sa adaugati pluginul in acel folder.

2.Intrati in server.cfg si adaugati pe linia "plugins" numele plugin-ului (""gvar"" iar daca este pe linux "gvar.so")

3.Intrati in gamemode folosind pawno si adaugati in primele linii "#include <gvar>" > dati compile !

Download:

[download]http://www.solidfiles.com/d/8d20cd550d/[/download]

Sper ca v-am fost de folos,

[Pawn]

Multumiri:

www.wiki.sa-mp.com - Pentru coduri

Incognito - Pentru plugin

Pentru suport nu ezitati sa ma contactati printr-un mesaj privat sau un mesaj pe Y/M.(Scripting sa:mp/cs,ScripturiWEB,phpbb,mysql,ipb,photoshop,html)

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.

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