SA-MP Forums Archive
Split problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Split problem (/showthread.php?tid=286376)



Split problem - [IL]HeHu - 28.09.2011

Here is the stock:
PHP код:
stock split(const strsrc[], strdest[][], delimiter)
{
    new 
ili;
    new 
aNum;
    new 
len;
    while(
<= strlen(strsrc)){
        if(
strsrc[i]==delimiter || i==strlen(strsrc)){
            
len strmid(strdest[aNum], strsrclii128);
            
strdest[aNum][len] = 0;
            
li i+1;
            
aNum++;
        }
        
i++;
    }
    return 
1;

It's not mine, and here is the problem I get:
PHP код:
C:\Users\Mark\Desktop\G-RP.pwn(8936) : error 025: function heading differs from prototype 
8936 is the stock split(....)


Re: Split problem - aRoach - 28.09.2011

Search forward split and delete it !


Re: Split problem - Jafet_Macario - 28.09.2011

Well you forwarded somewhere "split".


Re: Split problem - [IL]HeHu - 28.09.2011

Thought of that already, tried looking for it and failed.
Whatever, I'll look through the includes I have, I guess..


Re: Split problem - aRoach - 28.09.2011

Use CTRL + F xD


Re: Split problem - [IL]HeHu - 28.09.2011

^ /facepalm, i am not stupid.

Anyways, I found split at the bottom of my mysql.inc.
Thanks anyways.