Array Must be indexed, text
#3

pawn Код:
text = string/array.
Use: printf(text);// show the text in to console.

NumberToWrite = Interator/Nunber
Use: printf("This is number 1: %d", 1);
you can make:
pawn Код:
public OnPlayerText(playerid, text[])
{
    if(strfind(text, "50", true) != -1)
    {
          printf("I find the 50!!");
    }
    return 1;
}
Reply


Messages In This Thread
Array Must be indexed, text - by Larry123 - 03.03.2012, 17:04
Re: Array Must be indexed, text - by Walsh - 03.03.2012, 17:08
Re: Array Must be indexed, text - by DarkScripter - 03.03.2012, 17:11
Re: Array Must be indexed, text - by Larry123 - 03.03.2012, 17:15

Forum Jump:


Users browsing this thread: 2 Guest(s)