12.01.2015, 12:43
Example code :
result :
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);
}
}
pawn Код:
[20:23:51] Rick_Tran: Hello, im at Bayside, come here please