Jump to content

Recommended Posts

Posted

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)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 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.