C:\Users\!Erkan!\Desktop\Selfmade\gamemodes\RL.pwn(6847) : error 025: function heading differs from prototype
C:\Users\!Erkan!\Desktop\Selfmade\gamemodes\RL.pwn(6848) : error 021: symbol already defined: "strtok"
C:\Users\!Erkan!\Desktop\Selfmade\gamemodes\RL.pwn(6863) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
Zeilen 6847-6899
strtok(const string[], &index, trenner = ' ')
{
new length = strlen(string);
while ((index < length) && (string[index] <= trenner))
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (string[index] > trenner) && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}
stock strget(strx[], pos, search = ' ')
{
new arg, ret[128], idxx;
for (new i = 0; i < strlen(strx); i++)
{
if(strx[i] == search || i == strlen(strx) || strx[i + 1] == 10)
{
arg++;
if (arg == pos + 1)
{
ret[i-idxx] = EOS;
return ret;
} else if (arg == pos)
idxx= i+1;
}
else if (arg == pos)
ret[i - idxx] = strx[i];
}
return ret;
}
stock SpielerName(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
return name;
}
spielername(playerid)
{
new xname[MAX_PLAYER_NAME];
GetPlayerName(playerid,xname,sizeof xname);
return xname;
}