SA-MP Forums Archive
Compile Problems ! - 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: Compile Problems ! (/showthread.php?tid=360942)



Compile Problems ! - Mikeydoo - 19.07.2012

Ok here is the problem : I compile , it crashes. I used several methods like /* to comment and see where the problem is. I found that it came from here
PHP код:
YCMD:unban(PARAMS)
{
    
#pragma unused help
    
if(P_DATA[playerid][P_ADMINLEVEL] < 5)
        return 
SendClientMessage(playerid, -1"You're not allowed to use this command.");
    new 
name[MAX_PLAYER_NAME], str[128], path[60];
    if(
sscanf(params"s[24]"name))
        return 
SendClientMessage(playerid, -1"Usage: /unban [Exact PlayerName]");
    
format(path,sizeof path,PATHname);
    if(!
fexist(path))
        return 
SendClientMessage(playerid, -1"That account name does not exist.");
        
    new 
INI:File INI_Open(path);
    
INI_SetTag(File,"data");
    
INI_WriteBool(File,"Banned",false);
    
INI_Close(File);
    
format(strsizeof str"You unbanned %s"name);
    
SendClientMessage(playeridCOLOR_ADMINstr);
    return 
1;

I don't know what is wrong in my script.

Sincerly, Mike