03.03.2012, 17:04
pawn Код:
public OnPlayerText(playerid, text[])
{
if( text == NumberToWrite )
{
}
return 1;
}
Код:
array must be indexed (variable "text")
public OnPlayerText(playerid, text[])
{
if( text == NumberToWrite )
{
}
return 1;
}
array must be indexed (variable "text")
==
public OnPlayerText(playerid, text[])
{
if( strcmp(text,NumberToWrite,true) == 0 )
{
}
return 1;
}
text = string/array.
Use: printf(text);// show the text in to console.
NumberToWrite = Interator/Nunber
Use: printf("This is number 1: %d", 1);
public OnPlayerText(playerid, text[])
{
if(strfind(text, "50", true) != -1)
{
printf("I find the 50!!");
}
return 1;
}