Also ich habe eine /setskin function gemacht.
if(strcmp(cmd, "/setskin", true) == 0)
{
new playa2;
new idplayer;
new skinp;
playa2 = ReturnUser(tmp);
idplayer = strtok(cmdtext, idx);
skinp = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1)
{
if(IsPlayerConnected(idplayer))
{
if(idplayer != INVALID_PLAYER_ID)
{
SetPlayerSkin(idplayer,skinp);
}
}
}
}
doch es gibt ein error
C:\Gamemode\GFF.pwn(8748) : error 006: must be assigned to an array
Die Zeile mit dem Error is die:
idplayer = strtok(cmdtext, idx);