new cmd[128], idx;
cmd = strtok(cmdtext, idx);
if (strcmp(cmd, "/givewanteds", true) == 0){
if(pAdminLevel[playerid]<=1){
new tmp[128];
tmp = strtok(cmdtext, idx);
new playerid, amount;
playerid = strval(strtok(cmdtext, idx));
amount = strval(strtok(cmdtext, idx));
if(amount == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE: /givewanteds [playeridid] [amount]");
SetPlayerWanteds(playerid, GetPlayerWanteds(playerid)+amount);
dini_IntSet(Datei(playerid),"Wanteds",GetPlayerWantedLevel(playerid));
}
return 1;
}
dann musst du nur noch strtok einfügen