Dini Problem - NameRang Command
#1

Hello guys
I created a namerang Command with ocmd
but now i will save the params with dini
and i get this Error:
error 035: argument type mismatch (argument 3)
This is my Command:

ocmd:namerang(playerid,params[])
{
new aaa,rangid,Rangname[128],fID;
new fz[64];
new str0[128],str1[128];

format(fz,sizeof(fz),"/Fraknamen.txt");
fID = GetPVarInt(playerid,"Fraktion");
if(sscanf(params,"us",rangid,Rangname))return SendClientMessage(playerid,COLOR_RED,"/namerang [RangID] [Neuer Rang-Name]");
else
if(IsPlayerRang(playerid,4))aaa = 1;
if(IsPlayerRang(playerid,5))aaa = 1;
if(aaa != 1) return SendClientMessage(playerid,COLOR_RED,"Du bist kein Fraktion-Leiter");
if(rangid >= 5) return SendClientMessage(playerid,COLOR_RED,"Es gibt nur 5 Rдnge");
else
format(str1,sizeof(str1),"f%ir%i",fID,rangid);
dini_IntSet(fz,str1,Rangname);//Error Line
format(str0,sizeof(str0),"Du hast Rang %i zu %s umbenannt",rangid,Rangname);
SendClientMessage(playerid,COLOR_GREEN,str0);
return 1;
}
Reply


Messages In This Thread
Dini Problem - NameRang Command - by 89Mendo89 - 04.09.2014, 13:34
Re: Dini Problem - NameRang Command - by Skin123 - 04.09.2014, 14:05
Re: Dini Problem - NameRang Command - by View - 04.09.2014, 14:26
Re: Dini Problem - NameRang Command - by Stinged - 04.09.2014, 14:33
AW: Dini Problem - NameRang Command - by Skimmer - 04.09.2014, 14:35
Re: Dini Problem - NameRang Command - by 89Mendo89 - 04.09.2014, 14:38

Forum Jump:


Users browsing this thread: 2 Guest(s)