Please Help me Fast!
#1

hi im getting some errors.

Code:
PHP код:
#define PATH "AAdmin/Users/%s.ini
enum pData
{
   
pCash,
   
pKills,
   
pDeaths,
   
pAdmin
}
new 
PlayerInfo[MAX_PLAYERS][pData];
forward LoadUser_data(playerid,name[],value[]);
public 
LoadUser_data(playerid,name[],value[])
{
      
INI_Int("Admin",PlayerInfo[playerid][pAdmin]; // error line 20!
      
INT_Int("Kills",PlayerInfo[playerid][pKills]; // error line 21!
      
INT_Int("Cash",PlayerInfo[playerid][pCash];  // error line 22!
      
INT_Int("Deaths",PlayerInfo[playerid][pDeaths]; // error line 23!
      
return 1;
}
stock UserPath(playerid)
{
    new 
string[128],playername[MAX_PLAYER_NAME];
    
GetPlayerName(playerid,playername,sizeof(playername));
    
format(string,sizeof(string),PATH,playername); // error line 30!
    
return string;
}
public 
OnPlayerConnect(playerid)
{
    if(
fexist(UserPath(playerid)))
    {
        
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra true, .extra playerid);
         return 
1;
  }
  public 
OnPlayerDisconnect(playeridreason)
{
    new 
INI:File INI_Open(UserPath(playerid));
    
INI_SetTag(File,"data");
    
INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills];
    
INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
    
INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
    
INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
    
INI_Close(File);
    return 
1;

PHP код:
D:\gta sa\HEHE!\filterscripts\aadmin.pwn(20) : error 017undefined symbol "INI_Int"
D:\gta sa\HEHE!\filterscripts\aadmin.pwn(20) : warning 202number of arguments does not match definition
D
:\gta sa\HEHE!\filterscripts\aadmin.pwn(20) : error 001expected token","but found ";"
D:\gta sa\HEHE!\filterscripts\aadmin.pwn(21) : error 017undefined symbol "INT_Int"
D:\gta sa\HEHE!\filterscripts\aadmin.pwn(21) : warning 202number of arguments does not match definition
D
:\gta sa\HEHE!\filterscripts\aadmin.pwn(21) : error 001expected token","but found ";"
D:\gta sa\HEHE!\filterscripts\aadmin.pwn(22) : error 017undefined symbol "INT_Int"
D:\gta sa\HEHE!\filterscripts\aadmin.pwn(22) : warning 202number of arguments does not match definition
D
:\gta sa\HEHE!\filterscripts\aadmin.pwn(22) : error 001expected token","but found ";"
D:\gta sa\HEHE!\filterscripts\aadmin.pwn(23) : error 017undefined symbol "INT_Int"
D:\gta sa\HEHE!\filterscripts\aadmin.pwn(23) : warning 202number of arguments does not match definition
D
:\gta sa\HEHE!\filterscripts\aadmin.pwn(23) : error 001expected token","but found ";"
D:\gta sa\HEHE!\filterscripts\aadmin.pwn(30) : error 037invalid string (possibly non-terminated string)
D:\gta sa\HEHE!\filterscripts\aadmin.pwn(30) : error 017undefined symbol "AAdmin"
D:\gta sa\HEHE!\filterscripts\aadmin.pwn(30) : error 017undefined symbol "s"
D:\gta sa\HEHE!\filterscripts\aadmin.pwn(30) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
12 Errors

Reply


Messages In This Thread
Please Help me Fast! - by ahameed4755 - 03.11.2015, 19:46
Re : Please Help me Fast! - by Buthers - 03.11.2015, 20:04
Re : Please Help me Fast! - by Buthers - 03.11.2015, 20:07
Re: Please Help me Fast! - by ahameed4755 - 03.11.2015, 20:10
Re : Please Help me Fast! - by Buthers - 03.11.2015, 20:15
Re: Please Help me Fast! - by ahameed4755 - 03.11.2015, 20:48
Respuesta: Please Help me Fast! - by x3378 - 03.11.2015, 20:50
Re: Please Help me Fast! - by ahameed4755 - 03.11.2015, 20:54
Re: Please Help me Fast! - by Scottylad - 03.11.2015, 21:01
Re: Please Help me Fast! - by ahameed4755 - 04.11.2015, 13:14

Forum Jump:


Users browsing this thread: 1 Guest(s)