13.09.2013, 12:34
Hi samp,
I have a problem
i tried to add a coins system to my house system.
and i got theese errors
the lines are those with new file
whats the problem
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.
Код:
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;
}

