PHP код:
new textdrawid = -1;
for(new i, j = sizeof Msgs; i<j; i++)
{
if(!strfind(Msgs[i][0], msg, true)) continue;
textdrawid = Msgs[i][1];
break;
}
if(textdrawid == -1) // no similiar msg found
EDIT: you must use enum, thats not how to define a string in array
PHP код:
enum MSG_INFO
{
TEXT[50],
PlayerText:TXDID // or Text:
};
static const Msgs[][MSG_INFO] =
{
{"Together forever!", 1},
{"Long live!", 2},
{"Test Server", 3},
{"It's a great day!", 4}
};