06.06.2012, 19:49
could u plz convert this to zcmd
and also sscanf
i dunno how
pawn Code:
dcmd_setlevel(playerid, params[])
{
new level,id,file[256],n[MAX_PLAYER_NAME];//creating the new variabls
new tmp[256], tmp2[256], Index,str[50];
tmp = strtok(params,Index), tmp2 = strtok(params,Index),id = strval(tmp),level = strval(tmp2);// setting them to strtok so we can use them as parameters of our command
GetPlayerName(id,n,MAX_PLAYER_NAME);//getting the players name
format(file,sizeof(file),"MyAdmin/Users/%s.txt",n);//formatting the file
i dunno how