Replacing substrings
#12

to me , give me this waring..

pawn Code:
C:\Users\Franco\Desktop\samp03csvr_R2-2_win32\gamemodes\Bk.pwn(9065) : warning 224: indeterminate array size in "sizeof" expression (symbol "maxlength")
whait?

line:
pawn Code:
stock str_replace(currentstr[], replacestr[], findstr[])
{
    while(strfind(currentstr, findstr) != -1)
    {
        new pos = strfind(currentstr, findstr), len = strlen(replacestr);
        strdel(currentstr, pos, pos+len);
        strins(currentstr, replacestr, pos);
    }
    return 1;
}
Reply


Messages In This Thread
Replacing substrings - by MP2 - 24.08.2011, 19:21
Re: Replacing substrings - by [HiC]TheKiller - 24.08.2011, 20:10
Re: Replacing substrings - by MP2 - 25.08.2011, 00:25
Re: Replacing substrings - by Kingunit - 25.08.2011, 00:26
Re: Replacing substrings - by =WoR=G4M3Ov3r - 25.08.2011, 00:28
Re: Replacing substrings - by Davz*|*Criss - 25.08.2011, 00:29
Re: Replacing substrings - by MP2 - 25.08.2011, 00:38
Re: Replacing substrings - by MP2 - 25.08.2011, 00:48
Re: Replacing substrings - by RyDeR` - 25.08.2011, 00:51
Re: Replacing substrings - by =WoR=G4M3Ov3r - 25.08.2011, 00:52
Re: Replacing substrings - by MP2 - 25.08.2011, 02:06
Re: Replacing substrings - by Drako1407 - 25.08.2011, 02:12
Re: Replacing substrings - by RyDeR` - 25.08.2011, 03:09

Forum Jump:


Users browsing this thread: 1 Guest(s)