Question about strings
#1

Hello sa-mp forum!

I just thinking about strings.. so my question is: How to calculate every single character in strings, but not only whole text.. see example.

pawn Код:
stock ShowInfoBox(id, text[])
{
    new info[500]; //Calculate characters in string + text[]... instead of info[500]..
    format(info, sizeof(info), "%s~n~~n~~w~for close this use /ib", text);
    PlayerTextDrawSetString(id, ShadInfoBox[id], info);
    return 1;
}
Thanks for advice!
Reply


Messages In This Thread
Question about strings - by Jacapo - 25.01.2014, 17:32
Re: Question about strings - by Vanter - 25.01.2014, 19:02
Re: Question about strings - by Jacapo - 25.01.2014, 19:09
Re: Question about strings - by Vince - 25.01.2014, 19:14

Forum Jump:


Users browsing this thread: 1 Guest(s)