Help Variable
#4

Put this on top of your script:
Код:
#define MAX_REP 10 // The max amount of replies an actor can have. You can change this.
This is what your enum should look like:
Код:
enum eActor { 
    aID, 
    aName[MAX_PLAYER_NAME], 
    aSkin, 
    Float:aPos[4], 
    aWorld, 
    aReply[MAX_REP], 
     aAnim  
};

new Actors[MAX_ACTORS][eActor];
The string can be accessed by this: Actors[id of the actor][aReply][number of the actor's reply]

Example:
Код:
format(Actors[0][aReply][0], 128, "Welcome");
format(Actors[0][aReply][1], 128, "My name is Steve and I'm an actor with id 0");
format(Actors[0][aReply][2], 128, "This is my 3th reply");

new actormsg[128];
format(actormsg, sizeof(actormsg), "%s: %s", Actors[0][aName], Actors[0][aReply][0]);
SendClientMessage(playerid, -1, actormsg);
Reply


Messages In This Thread
Help Variable - by StreetRP - 06.11.2016, 11:01
Re: Help Variable - by PeanutButter - 06.11.2016, 11:41
Re: Help Variable - by StreetRP - 06.11.2016, 13:30
Re: Help Variable - by PeanutButter - 06.11.2016, 15:10
Re: Help Variable - by StreetRP - 06.11.2016, 15:49

Forum Jump:


Users browsing this thread: 1 Guest(s)