20.03.2017, 02:47
Hello everybody!
I have a small problem here and someone can help me, I thank you.
Well, I need to detect only the first character after a certain text, so I created this function:
But the code is returning:
I have a small problem here and someone can help me, I thank you.
Well, I need to detect only the first character after a certain text, so I created this function:
PHP код:
#include <a_samp>
public OnFilterScriptInit()
{
//I want to return only the char after #25 = B
GetCharAfter("Hello #25Best", "#25");
return 1;
}
stock GetCharAfter(text[], find[])
{
new pos = strfind(text, find, true);
if(pos != -1)
printf("Char after Find: %s",text[pos+strlen(find)]);
}
PHP код:
Char after Find: Best