argument type mismatch (argument 2)
#1

Hi samp,

I have a problem

i tried to add a coins system to my house system.

and i got theese errors
Код:
D:\1 NTFS\San Holod\scb(@)-cool one\filterscripts\new2.pwn(143) : warning 219: local variable "Name" shadows a variable at a preceding level
D:\1 NTFS\San Holod\scb(@)-cool one\filterscripts\new2.pwn(143) : error 035: argument type mismatch (argument 2)
D:\1 NTFS\San Holod\scb(@)-cool one\filterscripts\new2.pwn(143) : error 035: argument type mismatch (argument 2)
D:\1 NTFS\San Holod\scb(@)-cool one\filterscripts\new2.pwn(143) : warning 213: tag mismatch
D:\1 NTFS\San Holod\scb(@)-cool one\filterscripts\new2.pwn(146) : warning 217: loose indentation
D:\1 NTFS\San Holod\scb(@)-cool one\filterscripts\new2.pwn(143) : warning 204: symbol is assigned a value that is never used: "Name"
D:\1 NTFS\San Holod\scb(@)-cool one\filterscripts\new2.pwn(153) : warning 219: local variable "Name" shadows a variable at a preceding level
D:\1 NTFS\San Holod\scb(@)-cool one\filterscripts\new2.pwn(153) : error 035: argument type mismatch (argument 2)
D:\1 NTFS\San Holod\scb(@)-cool one\filterscripts\new2.pwn(153) : error 035: argument type mismatch (argument 2)
D:\1 NTFS\San Holod\scb(@)-cool one\filterscripts\new2.pwn(153) : warning 213: tag mismatch
D:\1 NTFS\San Holod\scb(@)-cool one\filterscripts\new2.pwn(153) : warning 204: symbol is assigned a value that is never used: "Name"
D:\1 NTFS\San Holod\scb(@)-cool one\filterscripts\new2.pwn(2105) : warning 203: symbol is never used: "amount"
D:\1 NTFS\San Holod\scb(@)-cool one\filterscripts\new2.pwn(2105) : warning 203: symbol is never used: "giveplayerid"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
the lines are those with new file


Код:
public OnPlayerConnect(playerid)
{
        new file[100],Name[MAX_PLAYER_NAME],Ip[16]; GetPlayerName(playerid,Name,sizeof(Name)); GetPlayerIp(playerid,Ip,sizeof(Ip)); format(file,sizeof(file),PlayerFile,Name);
        if(!dini_Exists(file)) {
            dini_Create(file);
                dini_IntSet(file,"Coins", pInfo[playerid][Coins]);
        }
        pInfo[playerid][Coins] = dini_Int(file,"Coins");
        return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
        new file[100],Name[MAX_PLAYER_NAME],Ip[16]; GetPlayerName(playerid,Name,sizeof(Name)); GetPlayerIp(playerid,Ip,sizeof(Ip)); format(file,sizeof(file),PlayerFile,Name);
        dini_IntSet(file,"Coins", pInfo[playerid][Coins]);
        return 1;
}
whats the problem
Reply


Messages In This Thread
argument type mismatch (argument 2) - by Alexica721 - 13.09.2013, 12:34
Re: argument type mismatch (argument 2) - by Alexica721 - 13.09.2013, 13:34
Re: argument type mismatch (argument 2) - by Alexica721 - 13.09.2013, 17:28
Re: argument type mismatch (argument 2) - by Alexica721 - 14.09.2013, 05:14
Re: argument type mismatch (argument 2) - by [HK]Ryder[AN] - 14.09.2013, 05:26
Re: argument type mismatch (argument 2) - by DavidLuango - 14.09.2013, 05:45
Re: argument type mismatch (argument 2) - by cray1100 - 14.09.2013, 05:49
Re: argument type mismatch (argument 2) - by Alexica721 - 14.09.2013, 06:40
Re: argument type mismatch (argument 2) - by cray1100 - 14.09.2013, 07:55
Re: argument type mismatch (argument 2) - by Alexica721 - 14.09.2013, 08:15

Forum Jump:


Users browsing this thread: 1 Guest(s)