Compiling error
#1

(1829) : error 025: function heading differs from prototype
(1830) : error 021: symbol already defined: "split"

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

This only happens when i add
PHP код:
#include <mysql>
#define MYSQL_HOSTNAME  "127.0.0.1"
#define MYSQL_DATABASE  "fuckme"
#define MYSQL_USERNAME  "root"
#define MYSQL_PASSWORD  "" 
Reply
#2

Try changing split to any other word
Reply
#3

i disabled it and now it complies fine wtf
Reply
#4

Quote:
Originally Posted by XBrianX
Посмотреть сообщение
i disabled it and now it complies fine wtf
Because obviously you either had it defined in your script a second time, or one of your includes already had it.
Reply
#5

Quote:
Originally Posted by Sew_Sumi
Посмотреть сообщение
Because obviously you either had it defined in your script a second time, or one of your includes already had it.
Yeah i guess but hey thanks
Reply
#6

Sunehildeep already told you to rename it and it would've been fixed.
Reply
#7

Quote:
Originally Posted by Crystallize
Посмотреть сообщение
Sunehildeep already told you to rename it and it would've been fixed.
Removing the define is the better option as otherwise you'll end up with 2 functions, doing exactly the same thing.

That is what the error was referring to in the first instance.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)