Wenn ich /id [playerid] eingebe kommt da nur:
id(0) KingCan | Level:
Also das problem ist er zeigt nicht welche Level der jenige ist ..
if(strcmp(cmd, "/id", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "/id [Playerid/Name]");
return 1;
}
new target;
target = ReturnUser(tmp);
new sstring[256];
new level = PlayerInfo[playerid][pLevel];
if(IsPlayerConnected(target))
{
if(target != INVALID_PLAYER_ID)
{
GetPlayerName(target, giveplayer, sizeof(giveplayer));
format(sstring, sizeof(sstring), "ID: (%d) %s | Level : %s",target,giveplayer,level);
SendClientMessage(playerid, COLOR_GRAD1, sstring);
}
}
}
return 1;
}