Split problem
#1

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(....)
Reply
#2

Search forward split and delete it !
Reply
#3

Well you forwarded somewhere "split".
Reply
#4

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

Use CTRL + F xD
Reply
#6

^ /facepalm, i am not stupid.

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


Forum Jump:


Users browsing this thread: 1 Guest(s)