if (strcmp(cmd, "/desbugar", true) == 0) {
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if (pAdmin[playerid] > 0) {
new tmp[256];
new plid;
tmp = strtok(cmdtext, idx);
if (!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "(ERRO) Digite: /desbugar [id]");
return 1;
}
plid = strval(tmp);
if (IsPlayerConnected(plid)) {
SpawnPlayer(plid);
return 1;
} else {
SendClientMessage(playerid, Vermelho, "ID invбlido");
return 1;
}
}
}
new tmp[128];
entao no caso ta significando o id do player? entao posso colocar new tmp[3]; ?
|
if(strcmp(cmd, "/desbugar", true) == 0)
{
if(pAdmin[playerid] == 0) return SendClientMessage(playerid, Vermelho, "[ERRO] Sem Permiзгo!");
new tmp[64], plid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, Vermelho, "[ERRO] Digite: /desbugar [id]");
plid = strval(tmp);
if(!IsPlayerConnected(plid)) return SendClientMessage(playerid, Vermelho, "[ERRO] ID invбlido!");
SpawnPlayer(plid);
return 1;
}