24.08.2013, 17:20
Hello,
I have this error:
error 035: argument type mismatch (argument 1)
This all of lines that have error:
Please I don't understand what problem...
sorry on my bad english
I have this error:
error 035: argument type mismatch (argument 1)
PHP код:
new tmps[256],strings[24];
tmps = strtok(cmdtext,idx);
if(!strlen(tmps)) return SendClientMessage(playerid,COLOR_RED,"/ChangeNick [NewNickName]");
format(strings,sizeof(strings),"Users/%s.txt",tmps);
if(dini_Exists(strings)) return SendClientMessage(playerid,COLOR_RED,"Wrong Nick.");
if(!dini_Exists(strings))
{
GetPlayerIp(playerid, playerip, sizeof(playerip));
dini_Create(PlayerFile(strings));
dini_Set(PlayerFile(strings), "/==User Info","=/");
dini_Set(PlayerFile(strings),"Pass",dini_Get(PlayerFile(playerid),"Pass"));
dini_IntSet(PlayerFile(strings),"Level",dini_Int(PlayerFile(playerid),"Level"));
dini_IntSet(PlayerFile(strings),"Money",dini_Int(PlayerFile(playerid),"Money"));
dini_Set(PlayerFile(strings),"Registered",dini_Get(PlayerFile(playerid),"Registered"));
dini_Set(PlayerFile(strings), "Ip",dini_Get(PlayerFile(playerid),"Ip"));
PHP код:
dini_Set(PlayerFile(strings),"Pass",dini_Get(PlayerFile(playerid),"Pass"));
dini_IntSet(PlayerFile(strings),"Level",dini_Int(PlayerFile(playerid),"Level"));
dini_IntSet(PlayerFile(strings),"Money",dini_Int(PlayerFile(playerid),"Money"));
dini_Set(PlayerFile(strings),"Registered",dini_Get(PlayerFile(playerid),"Registered"));
dini_Set(PlayerFile(strings), "Ip",dini_Get(PlayerFile(playerid),"Ip"));
sorry on my bad english