14.09.2018, 10:59
So I was planning to create an array for the messages of 4 textdraws
And I was trying to create a command that would pick out the message and the textdraw id it's assigned to
That's as far as I can go in the command. dunno how to pick out something from the array with just a part of its word
Tryna' learn how Multidimensional arrays work =)
PHP код:
static const Msgs[][2][50] = //[] is for the id, [2] is to declare a multidimensional array, [50] is the maxlength of the string
{
{"Together forever!", 1},
{"Long live!", 2},
{"Test Server", 3},
{"It's a great day!", 4}
};
//the second values (numerical ones) are the ids of the textdraw
PHP код:
CMD:findmsg(playerid, params[])
{
new msg[64];
if(sscanf(params, "s", msg))
{
SendClientMessage(playerid, -1, "USAGE: /findmsg [part of word]");
return 1;
}
return 1;
}
Tryna' learn how Multidimensional arrays work =)