Strfind question
#2

You can use some characters to know where this score is, example

Код:
format(str,sizeof(str),"(%d)\t%s\n", GetPlayerScore(playerid),GetPlayerName(playerid));

//getting the number
new g[8];
strmid(g, inputtext, 1, strfind(inputtext, ")"));
printf("score: %d", strval(g));
Reply


Messages In This Thread
Strfind question - by Supermaxultraswag - 24.02.2015, 14:59
Re: Strfind question - by ball - 24.02.2015, 15:08
Re: Strfind question - by Supermaxultraswag - 24.02.2015, 15:26
Re: Strfind question - by DRIFT_HUNTER - 24.02.2015, 15:27
Re: Strfind question - by Supermaxultraswag - 24.02.2015, 15:31
Re: Strfind question - by ball - 24.02.2015, 16:08
Re: Strfind question - by Supermaxultraswag - 24.02.2015, 17:06
Re: Strfind question - by ball - 24.02.2015, 17:36
Re: Strfind question - by dominik523 - 24.02.2015, 18:02

Forum Jump:


Users browsing this thread: 1 Guest(s)