version script
#1

Hi all,i need to make a version of script.

I explain better:

i will write the version of script (ex: 1.0) in a define/string and when i wanna read as like cmd /version,i will do

Version of script: VERSION DEFINED.

Thanks
Reply
#2

Do you mean like this? If I got it wrong, then sorry :/
pawn Код:
#include <a_samp>
#include <zcmd>
#define VERSION 1.0
CMD:version(playerid, params[])
{
    SendClientMessage(playerid, 0xFFFFFFFF, "Version of script: "#VERSION"");
    return 1;
}
Reply
#3

Yeah,thanks.
Reply
#4

Quote:
Originally Posted by Mikkel_Pedersen
Посмотреть сообщение
Do you mean like this? If I got it wrong, then sorry :/
pawn Код:
#include <a_samp>
#include <zcmd>
#define VERSION 1.0
CMD:version(playerid, params[])
{
    SendClientMessage(playerid, 0xFFFFFFFF, "Version of script: "#VERSION"");
    return 1;
}
Don't force zcmd on people, others are doing it aswell and It's like everyone that release something would force strtok on you.

pawn Код:
#define VERSION "V1.0"

// And call it with VERSION. Example;
SendClientMessage(playerid, COLOR, VERSION);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)