Multidimensional Array
#6

Quote:
Originally Posted by Shinja
Посмотреть сообщение
PHP код:
new textdrawid = -1
for(new 
isizeof Msgsi<ji++)
{
    if(!
strfind(Msgs[i][0], msgtrue)) 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
}; 
Forgot to thank you =)
Reply


Messages In This Thread
Multidimensional Array - by NealPeteros - 14.09.2018, 10:59
Re: Multidimensional Array - by v1k1nG - 14.09.2018, 11:00
Re: Multidimensional Array - by NealPeteros - 14.09.2018, 11:17
Re: Multidimensional Array - by Shinja - 14.09.2018, 11:19
Re: Multidimensional Array - by AmirSavand - 14.09.2018, 12:02
Re: Multidimensional Array - by NealPeteros - 14.09.2018, 12:54
Re: Multidimensional Array - by v1k1nG - 14.09.2018, 13:35

Forum Jump:


Users browsing this thread: 2 Guest(s)