SA-MP Forums Archive
5 errors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: 5 errors (/showthread.php?tid=367749)



5 errors - rami.chaar2 - 11.08.2012

C:\DOCUME~1\Owner\Desktop\NEWFOL~1\TESTSE~1\CLASSI ~1\CLASSI~1\GAMEMO~1\CLASSI~1.PWN(875) : error 001: expected token: "-identifier-", but found "["
C:\DOCUME~1\Owner\Desktop\NEWFOL~1\TESTSE~1\CLASSI ~1\CLASSI~1\GAMEMO~1\CLASSI~1.PWN(876) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Owner\Desktop\NEWFOL~1\TESTSE~1\CLASSI ~1\CLASSI~1\GAMEMO~1\CLASSI~1.PWN(876) : error 035: argument type mismatch (argument 1)
C:\DOCUME~1\Owner\Desktop\NEWFOL~1\TESTSE~1\CLASSI ~1\CLASSI~1\GAMEMO~1\CLASSI~1.PWN(876) : error 020: invalid symbol name ""
C:\DOCUME~1\Owner\Desktop\NEWFOL~1\TESTSE~1\CLASSI ~1\CLASSI~1\GAMEMO~1\CLASSI~1.PWN(876) : fatal error 107: too many error messages on one line


PHP код:
public OnPlayerConnect(playerid

    
firstspawn[playerid] = 1
875    new string[300]; 
876     format(string,sizeof(string),"» %s(ID:%d) has joined "lyellow2" Classic Trucking!" ,GetPName(playerid),playerid); 
    
SendClientMessageToAll(green2,string); 
    new 
file[128],ip[16]; 
    
GetPlayerIp(playerid,ip,16); 
    
format(file,sizeof(file),"Admin/Bans/%s.ini",ip); 
    if(
INI_Exist(file)) 
    { 
        
INI_Open(file); 
        new 
Admin[24], Reason[128]; 
        
INI_ReadString(Admin,"Admin",24); 
         
INI_ReadString(Reason,"Reason",128); 
        
format(string,sizeof(string),""lred"\t\tAccount "lyellow"\"%s\""lred" is banned - read the following details: \n\nYour name: %s \nAdmin name: %s \nReason: %s \nYour IP Address: %s \n\n\t\t"lyellow2"If you wish, take a screenshot of this box and make an unban appeal at "lgrey"www.nsg-gaming.net.",GetPName(playerid),GetPName(playerid),Admin,Reason,ip); 
        
ShowPlayerDialog(playerid,9002,0,""lred"BANNED",string,"OK",""); 
        
format(string,sizeof(string),"*** %s(ID:%d) has been automatically kicked as he his banned!",GetPName(playerid),playerid); 
        
SendClientMessageToAll(red,string); 
        
PlaySound(playerid,1009); 
        
Kick(playerid); 
        
INI_Close(); 
        return 
1
    } 
plz help me


Re: 5 errors - CaRa - 11.08.2012

Код:
 public OnPlayerConnect(playerid)
{
    firstspawn[playerid] = 1;
    new string[300];
    format(string,sizeof(string),"» %s(ID:%d) has joined "lyellow2" Classic Trucking!" ,GetPName(playerid),playerid);
    SendClientMessageToAll(green2,string);
    new file[128],ip[16];
    GetPlayerIp(playerid,ip,16);
    format(file,sizeof(file),"Admin/Bans/%s.ini",ip);
    if(INI_Exist(file))
    {
        INI_Open(file);
        new Admin[24], Reason[128];
        INI_ReadString(Admin,"Admin",24);
        INI_ReadString(Reason,"Reason",128);
        format(string,sizeof(string),""lred"\t\tAccount "lyellow"\"%s\""lred" is banned - read the following details: \n\nYour name: %s \nAdmin name: %s \nReason: %s \nYour IP Address: %s \n\n\t\t"lyellow2"If you wish, take a screenshot of this box and make an unban appeal at "lgrey"www.nsg-gaming.net.",GetPName(playerid),GetPName(playerid),Admin,Reason,ip);
        ShowPlayerDialog(playerid,9002,0,""lred"BANNED",string,"OK","");
        format(string,sizeof(string),"*** %s(ID:%d) has been automatically kicked as he his banned!",GetPName(playerid),playerid);
        SendClientMessageToAll(red,string);
        PlaySound(playerid,1009);
        Kick(playerid);
        INI_Close();
        return 1;
   }

}
Try this, if you get warnings,errors post the error and warning code line


Re: 5 errors - rami.chaar2 - 11.08.2012

i still get the same errors