06.11.2016, 15:10
Put this on top of your script:
This is what your enum should look like:
The string can be accessed by this: Actors[id of the actor][aReply][number of the actor's reply]
Example:
Код:
#define MAX_REP 10 // The max amount of replies an actor can have. You can change this.
Код:
enum eActor { aID, aName[MAX_PLAYER_NAME], aSkin, Float:aPos[4], aWorld, aReply[MAX_REP], aAnim }; new Actors[MAX_ACTORS][eActor];
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);