12.07.2011, 17:00
Hey, this is the split function to those unfamiliar with it:
Now I tried to do this:
And this is the error it puts out:
PHP код:
public split(const strsrc[], strdest[][], delimiter)
{
new i, li;
new aNum;
new len;
while(i <= strlen(strsrc)){
if(strsrc[i]==delimiter || i==strlen(strsrc)){
len = strmid(strdest[aNum], strsrc, li, i, 128);
strdest[aNum][len] = 0;
li = i+1;
aNum++;
}
i++;
}
return 1;
}
PHP код:
new Parts[3][52];
split(mysql_Float(SQL_USERS,PlayerInfo[playerid][pUID],"spawn"), Parts, ',');
PHP код:
C:\Users\Mark\Desktop\GRP.pwn(350) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.