Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- public OnFilterScriptInit()
- {
- new string[] = "Coucou Kilou le boss de la street'zer";
- printf(string);
- strrep(string, "Kilou", "S4T3K");
- printf(string);
- return 1;
- }
- stock strrep(str[], const oldsub[], const newsub[])
- {
- if(!strfind(str, oldsub)) return -1;
- new pos[2];
- pos[0] = strfind(str, oldsub);
- pos[1] = strfind(str, " ", true, pos[0]);
- strdel(str, pos[0], pos[1]);
- strins(str, newsub, pos[0]);
- return 1;
- }
- native strrep(str[], const oldsub[], const newsub[]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement