Help making - Quick Strings
#10

Example code :
pawn Код:
main(){

    new
        zone[32] = { "Bayside" },
        text[64] = { "Hello, im at $loc, come here please " };

    if(strfind(text, "$loc", true) != -1)
    {
        new
            pos = strfind(text, "$loc", true);
   
        strdel(text, pos, pos + strlen("$loc"));
        strins(text, zone, pos);
        printf("Rick_Tran: %s", text);
    }
   
}
result :
pawn Код:
[20:23:51] Rick_Tran: Hello, im at Bayside, come here please
Reply


Messages In This Thread
Help making - Quick Strings - by Airman123 - 12.01.2015, 12:05
Re: Help making - Quick Strings - by 1fret - 12.01.2015, 12:09
Re: Help making - Quick Strings - by Airman123 - 12.01.2015, 12:14
Re: Help making - Quick Strings - by rickisme - 12.01.2015, 12:17
Re: Help making - Quick Strings - by Airman123 - 12.01.2015, 12:19
Re: Help making - Quick Strings - by 1fret - 12.01.2015, 12:21
Re: Help making - Quick Strings - by Airman123 - 12.01.2015, 12:22
Re: Help making - Quick Strings - by zT KiNgKoNg - 12.01.2015, 12:24
Re: Help making - Quick Strings - by Airman123 - 12.01.2015, 12:30
Re: Help making - Quick Strings - by rickisme - 12.01.2015, 12:43

Forum Jump:


Users browsing this thread: 1 Guest(s)