Please Help Me
#1

Hello,

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(playeridplayeripsizeof(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")); 
This all of lines that have error:
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")); 
Please I don't understand what problem...

sorry on my bad english
Reply
#2

From what I see..

Quote:

dini_Set(PlayerFile(strings),"Pass",dini_Get(PlayerFile(playerid),"Pass"));

For all of them, should be:

Quote:

dini_Set(PlayerFile(playerid),"Pass",dini_Get(PlayerFile(playerid),"Pass"));

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)