01.10.2010, 11:24
That's my unfinished command.
I want to set player i select ((podaneid)) a faction of my choice. ((/dajlidera [id] [faction id]))
I'm using ZCMD and i don't know how to do it without cmdtext and other things.
Can someone just fix this code?
PHP код:
CMD:dajlidera(playerid, params[])
{
new podaneid;
new numer;
new tmp[256];
numer = strval(tmp);
if(sscanf(params, "u", podaneid)) return SendClientMessage(playerid, colorRed, "Use /dajlidera");
if(podaneid == INVALID_PLAYER_ID) return SendClientMessage(playerid, colorRed, "Wrong player id.");
format(file, 128, "/SRP/%s.ini", GetName(podaneid));
dini_IntSet(file, "Frakcja", numer);
return 1;
}
I'm using ZCMD and i don't know how to do it without cmdtext and other things.
Can someone just fix this code?