Problem with split
#1

Hey, this is the split function to those unfamiliar with it:
PHP код:
public 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;

Now I tried to do this:
PHP код:
        new Parts[3][52];
            
split(mysql_Float(SQL_USERS,PlayerInfo[playerid][pUID],"spawn"), Parts','); 
And this is the error it puts out:
PHP код:
C:\Users\Mark\Desktop\GRP.pwn(350) : error 035argument type mismatch (argument 1)
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
1 Error

Reply


Messages In This Thread
Problem with split - by [IL]HeHu - 12.07.2011, 17:00
Re: Problem with split - by [IL]HeHu - 12.07.2011, 17:26
Re: Problem with split - by [IL]HeHu - 12.07.2011, 18:35

Forum Jump:


Users browsing this thread: 2 Guest(s)