Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Problem with acmds

$
0
0
PHP Code:

COMMAND:acmds(playeridparams[])
{
        if(
GetPVarInt(playerid"PlayerAdminLevel") < 1) return SCM(playeridCOLOR_RED"You need to be admin to use this command!");
        if(
GetPVarInt(playerid"PlayerAdminLevel") == 1){
        
SCM(playerid,-1,""COL_YELLOW"=======Commands======="); <------line 515
        SCM
(playerid,-1,""COL_YELLOW"Level 1:"COL_RED" /say | /(un)freeze | /goto | /[un]mute ");}
        if(
GetPVarInt(playerid"PlayerAdminLevel") == 2){
        
SCM(playerid,-1,""COL_YELLOW"=======Commands=======");
        
SCM(playerid,-1,""COL_YELLOW"Level 1:"COL_RED" /say | /(un)freeze | /goto | /[un]mute ");
        
SCM(playerid,-1,""COL_YELLOW"Level 2:"COL_RED" /kick | /announce | /bring | /drop | /(un)jail | /spawn | /ip ");}
        if(
GetPVarInt(playerid"PlayerAdminLevel") == 3){
        
SCM(playerid,-1,""COL_YELLOW"=======Commands=======");
        
SCM(playerid,-1,""COL_YELLOW"Level 1:"COL_RED" /say | /(un)freeze | /goto | /[un]mute ");
        
SCM(playerid,-1,""COL_YELLOW"Level 2:"COL_RED" /kick | /announce | /bring | /drop | /(un)jail | /spawn | /ip ");
        
SCM(playerid,-1,""COL_YELLOW"Level 3:"COL_RED" /slay | /explode | /ban | /setdeaths | /setkills ");}
        if(
GetPVarInt(playerid"PlayerAdminLevel") == 4){
        
SCM(playerid,-1,""COL_YELLOW"=======Commands=======");
        
SCM(playerid,-1,""COL_YELLOW"Level 1:"COL_RED" /say | /(un)freeze | /goto | /[un]mute |");
        
SCM(playerid,-1,""COL_YELLOW"Level 2:"COL_RED" /kick | /announce | /bring | /drop | /(un)jail | /spawn | /ip ");
        
SCM(playerid,-1,""COL_YELLOW"Level 3:"COL_RED" /slay | /explode | /ban | /setdeaths | /setkills ");
        
SCM(playerid,-1,""COL_YELLOW"Level 4:"COL_RED" /setscore | /setmoney | /setplayerbank | /healall | /armourall | /disarm | /unban");}
        if(
GetPVarInt(playerid"PlayerAdminLevel") == 5){
        
SCM(playerid,-1,""COL_YELLOW"=======Commands=======");
        
SCM(playerid,-1,""COL_YELLOW"Level 1:"COL_RED" /say | /(un)freeze | /goto | /[un]mute |");
        
SCM(playerid,-1,""COL_YELLOW"Level 2:"COL_RED" /kick | /announce | /bring | /drop | /(un)jail | /spawn | /ip ");
        
SCM(playerid,-1,""COL_YELLOW"Level 3:"COL_RED" /slay | /explode | /ban | /setdeaths | /setkills ");
        
SCM(playerid,-1,""COL_YELLOW"Level 4:"COL_RED" /setscore | /setmoney | /setplayerbank | /healall | /armourall | /disarm | /unban");}
        
SCM(playerid,-1,""COL_YELLOW"Level 5:"COL_RED" /setlevel | /gmx ");}
        return 
1;


The errors i get

PHP Code:

C:\Users\Baki\Desktop\developer\pawno\include\_mysql_register.inc(515) : error 001expected token"-string end-"but found "-identifier-"
C:\Users\Baki\Desktop\developer\pawno\include\_mysql_register.inc(515) : warning 215expression has no effect
C
:\Users\Baki\Desktop\developer\pawno\include\_mysql_register.inc(515) : error 001expected token";"but found "-string-"
C:\Users\Baki\Desktop\developer\pawno\include\_mysql_register.inc(515) : warning 215expression has no effect
C
:\Users\Baki\Desktop\developer\pawno\include\_mysql_register.inc(515) : error 001expected token";"but found ")"
C:\Users\Baki\Desktop\developer\pawno\include\_mysql_register.inc(515) : fatal error 107too many error messages on one line 

Will be glad to rep you if you helped me!

Viewing all articles
Browse latest Browse all 18226

Trending Articles