A Little Question [+REP]
#1

So let me explain .
In Admin FS i have the Saving System with BUD.

I want to extract a function from LuxAdmin to GameMode for example

AccInfo[playerid][Coins] -> How to add in Gamemode
If i have in Admin System an array for example

pawn Код:
new Array[MAX_PLAYERS]

public OnPlayerConnect(playerid)
{
    Array[playerid] = 1;
}
And in GameMode i want to use this array for example

pawn Код:
CMD:msg(playerid, params[])
{
  if(Array[playerid] == 1)
     return etc..;
}
How to do this . PLEASE HELP!
Reply
#2

BUMP PLEASE HELP!
Reply
#3

You can do that with if you use Y_ini. I guess you mean something like this
pawn Код:
YCMD:sethunger(playerid, params[], help)
{
    if (help) return SendClientMessage(playerid, 0x808080FF, "/heal este folosit pentru a da viata unui player, necesita truse de prim ajutor.");
    new id, value;
    if(!PlayerInfo[playerid][pAdmin] && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1, "Nu esti admin");
    if(sscanf(params,"dd",id,value)) return SendClientMessage(playerid, COLOR_GREY, "[FOLOSIRE]:/sethunger [IDplayer] [Suma]");
    PlayerInfo[playerid][pHunger] = value;
    return 1;
}
What I wanted to show you here it's the PlayerInfo[playerid][pHunger] = value;
Reply
#4

No , you don't understand what i want .
So in gamemode i made a function

and i want to use that function in anoter FS is that possible?
Reply
#5

It's possible, but it's quite difficult. You need to search for ******'s work, that's where I remember reading something like that up.

But as basic as you put it there, no it's not possible
Reply
#6

Can you give me a link ?
Reply
#7

I can't find it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)