bei mir erkennt er returnuser nicht O_o
einfach kick command:
if(strcmp(cmd, "/kick", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, GRAU, "Benutze: /kick [playerid] [Grund]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1)
{
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, GRAU, "Benutze: /kick [playerid] [Grund]");
return 1;
}
format(string, sizeof(string), "SERVER: %s wurde von %s gekickt, Grund: %s", giveplayer, sendername, (result));
SendClientMessageToAll(COLOR_RED, string);
Kick(giveplayerid);
return 1;
}
}
}
else
{
format(string, sizeof(string), " %d gibt es nicht.", giveplayerid);
SendClientMessage(playerid, GRAU, string);
}
}
return 1;
}
F:\Server\MULTISTUNT by Multivan\gamemodes\MULTISTUNT.pwn(1923) : error 017: undefined symbol "ReturnUser"
zeile:
giveplayerid = ReturnUser(tmp);
ich benutze gTeam
mfg multivan