Invalid Character Constant :/
#1

I create /acmds a long time ago and it was working hell fine, but i just edited some of the commands and it start giving error:-
Код:
COMMAND:acmds(playerid, params[])
{
	if(playerData[playerid][playerLoggedIn])
	{
		if(playerData[playerid][playerLevel] >= 1)
		{
			new string[1600];
                        format(string, sizeof(string), "%s{98B0CD}LEVEL 1 COMMANDS{51FF00}\n/playerjailtime /blockreport /blockask /a /ans /arules /ahelp /playerstats\n/acmds /aod /asay /(un)freeze /goto /jail /kick /spawn\n/spec(off) /warn\n\n", string);
                        if(playerData[playerid][playerLevel] >= 2)
			format(string, sizeof(string), "%s{98B0CD}LEVEL 2 COMMANDS{51FF00}\n/(start)duel /alog /vrespawn /clearchat /explode /(un)mute /playerweapons\n/arenas /blockask /blockreport \n\n", string);
                        if(playerData[playerid][playerLevel] >= 3)
			format(string, sizeof(string), "%s{98B0CD}LEVEL 3 COMMANDS{51FF00}\n/jetpack /parachute /cleardeath /playertokens /playerjob /forcerules /forcecoptutorial\n/getpforevent /get /resetweapons /ban /vc /destroyallav /vdestroy\n\n", string);
                        if(playerData[playerid][playerLevel] >= 4)
			format(string, sizeof(string), "%s{98B0CD}LEVEL 4 COMMANDS{51FF00}\n/(un)freezeall /givejetpack /oban /forceaod /fakeban /acount /ann /adkill\n/(un)copban /(un)armyban /resetiks /unban /respawnalluv\n\n", string);
                        if(playerData[playerid][playerLevel] >= 5)
			format(string, sizeof(string), "%s{98B0CD}LEVEL 5 COMMANDS{51FF00}\n/fakechat /allowspec /adminname /removename /teleport /setint /setvw /setbc\n/data /saveallstats /saveallgang /faketip /resetallweapons /giveallcookies /giveweapons\n/ahealall /cwspy /createhouse /deletehouse /respawnallv\n/gotocase /startcase /houseinfo\n\n", string);
                        if(playerData[playerid][playerLevel] >= 6)
			format(string, sizeof(string), "%s{98B0CD}LEVEL 6 COMMANDS{51FF00}\n/(fine)givetoken /gotoloc /standard-silver-gold-goldplusvip \n/setadmin /ping /fine /givecash /(fine)givecookies /givemoney /giveallcash \n/give(all)xp /giveallweapons /doublexp \kickwarp \n/rapidfire /carwarp /airbrake /poptyres /changename /playerhouses\n\n", string);
                        ShowPlayerDialog(playerid, 200, DIALOG_STYLE_MSGBOX, "Admin Commands", string, "OK", "");
			return 1;
		}
	}
	return 0;
}
Error line :-
Код:
			format(string, sizeof(string), "%s{98B0CD}LEVEL 6 COMMANDS{51FF00}\n/(fine)givetoken /gotoloc /standard-silver-gold-goldplusvip \n/setadmin /ping /fine /givecash /(fine)givecookies /givemoney /giveallcash \n/give(all)xp /giveallweapons /doublexp \kickwarp \n/rapidfire /carwarp /airbrake /poptyres /changename /playerhouses\n\n", string);
Please Help Me!
Reply
#2

Quote:
Originally Posted by BlackLineCnR
Посмотреть сообщение
I create /acmds a long time ago and it was working hell fine, but i just edited some of the commands and it start giving error:-
Код:
COMMAND:acmds(playerid, params[])
{
	if(playerData[playerid][playerLoggedIn])
	{
		if(playerData[playerid][playerLevel] >= 1)
		{
			new string[1600];
                        format(string, sizeof(string), "%s{98B0CD}LEVEL 1 COMMANDS{51FF00}\n/playerjailtime /blockreport /blockask /a /ans /arules /ahelp /playerstats\n/acmds /aod /asay /(un)freeze /goto /jail /kick /spawn\n/spec(off) /warn\n\n", string);
                        if(playerData[playerid][playerLevel] >= 2)
			format(string, sizeof(string), "%s{98B0CD}LEVEL 2 COMMANDS{51FF00}\n/(start)duel /alog /vrespawn /clearchat /explode /(un)mute /playerweapons\n/arenas /blockask /blockreport \n\n", string);
                        if(playerData[playerid][playerLevel] >= 3)
			format(string, sizeof(string), "%s{98B0CD}LEVEL 3 COMMANDS{51FF00}\n/jetpack /parachute /cleardeath /playertokens /playerjob /forcerules /forcecoptutorial\n/getpforevent /get /resetweapons /ban /vc /destroyallav /vdestroy\n\n", string);
                        if(playerData[playerid][playerLevel] >= 4)
			format(string, sizeof(string), "%s{98B0CD}LEVEL 4 COMMANDS{51FF00}\n/(un)freezeall /givejetpack /oban /forceaod /fakeban /acount /ann /adkill\n/(un)copban /(un)armyban /resetiks /unban /respawnalluv\n\n", string);
                        if(playerData[playerid][playerLevel] >= 5)
			format(string, sizeof(string), "%s{98B0CD}LEVEL 5 COMMANDS{51FF00}\n/fakechat /allowspec /adminname /removename /teleport /setint /setvw /setbc\n/data /saveallstats /saveallgang /faketip /resetallweapons /giveallcookies /giveweapons\n/ahealall /cwspy /createhouse /deletehouse /respawnallv\n/gotocase /startcase /houseinfo\n\n", string);
                        if(playerData[playerid][playerLevel] >= 6)
			format(string, sizeof(string), "%s{98B0CD}LEVEL 6 COMMANDS{51FF00}\n/(fine)givetoken /gotoloc /standard-silver-gold-goldplusvip \n/setadmin /ping /fine /givecash /(fine)givecookies /givemoney /giveallcash \n/give(all)xp /giveallweapons /doublexp \kickwarp \n/rapidfire /carwarp /airbrake /poptyres /changename /playerhouses\n\n", string);
                        ShowPlayerDialog(playerid, 200, DIALOG_STYLE_MSGBOX, "Admin Commands", string, "OK", "");
			return 1;
		}
	}
	return 0;
}
Error line :-
Код:
			format(string, sizeof(string), "%s{98B0CD}LEVEL 6 COMMANDS{51FF00}\n/(fine)givetoken /gotoloc /standard-silver-gold-goldplusvip \n/setadmin /ping /fine /givecash /(fine)givecookies /givemoney /giveallcash \n/give(all)xp /giveallweapons /doublexp \kickwarp \n/rapidfire /carwarp /airbrake /poptyres /changename /playerhouses\n\n", string);
Please Help Me!
Try after each \n add a space.
Reply
#3

NAh, if that is prob it must give error on above lines also!
Reply
#4

Anyone Help Please!
Reply
#5

PHP код:
COMMAND:acmds(playeridparams[])
{
    if(
playerData[playerid][playerLoggedIn])
    {
        if(
playerData[playerid][playerLevel] >= 1)
        {
            new 
string[1600];
            
format(stringsizeof(string), "%s{98B0CD}LEVEL 1 COMMANDS{51FF00}\n/playerjailtime /blockreport /blockask /a /ans /arules /ahelp /playerstats\n/acmds /aod /asay /(un)freeze /goto /jail /kick /spawn\n/spec(off) /warn\n\n"string);
            if(
playerData[playerid][playerLevel] >= 2)
            
format(stringsizeof(string), "%s{98B0CD}LEVEL 2 COMMANDS{51FF00}\n/(start)duel /alog /vrespawn /clearchat /explode /(un)mute /playerweapons\n/arenas /blockask /blockreport \n\n"string);
               if(
playerData[playerid][playerLevel] >= 3)
            
format(stringsizeof(string), "%s{98B0CD}LEVEL 3 COMMANDS{51FF00}\n/jetpack /parachute /cleardeath /playertokens /playerjob /forcerules /forcecoptutorial\n/getpforevent /get /resetweapons /ban /vc /destroyallav /vdestroy\n\n"string);
            if(
playerData[playerid][playerLevel] >= 4)
            
format(stringsizeof(string), "%s{98B0CD}LEVEL 4 COMMANDS{51FF00}\n/(un)freezeall /givejetpack /oban /forceaod /fakeban /acount /ann /adkill\n/(un)copban /(un)armyban /resetiks /unban /respawnalluv\n\n"string);
            if(
playerData[playerid][playerLevel] >= 5)
            
format(stringsizeof(string), "%s{98B0CD}LEVEL 5 COMMANDS{51FF00}\n/fakechat /allowspec /adminname /removename /teleport /setint /setvw /setbc\n/data /saveallstats /saveallgang /faketip /resetallweapons /giveallcookies /giveweapons\n\n"string);
            if(
playerData[playerid][playerLevel] >= 5)
            
format(stringsizeof(string), "%s{98B0CD}LEVEL 5 COMMANDS{51FF00}\n/ahealall /cwspy /createhouse /deletehouse /respawnallv\n/gotocase /startcase /houseinfo\n\n"string);
            if(
playerData[playerid][playerLevel] >= 6)
            
format(stringsizeof(string), "%s{98B0CD}LEVEL 6 COMMANDS{51FF00}\n/(fine)givetoken /gotoloc /standard-silver-gold-goldplusvip \n/setadmin /ping /fine /givecash /(fine)givecookies /givemoney /giveallcash\n\n"string);
            if(
playerData[playerid][playerLevel] >= 6)
            
format(stringsizeof(string), "%s{98B0CD}LEVEL 6 COMMANDS{51FF00}\n/give(all)xp /giveallweapons /doublexp \kickwarp \n/rapidfire /carwarp /airbrake /poptyres /changename /playerhouses\n\n"string);
            
ShowPlayerDialog(playerid200DIALOG_STYLE_MSGBOX"Admin Commands"string"OK""");
            return 
1;
        }
    }
    return 
0;

Reply
#6

Ahh I tried everything also this
Код:
COMMAND:acmds(playerid, params[]) 
{ 
    if(playerData[playerid][playerLoggedIn]) 
    { 
        if(playerData[playerid][playerLevel] >= 1) 
        { 
            new string[1600]; 
            format(string, sizeof(string), "%s{98B0CD}LEVEL 1 COMMANDS{51FF00}\n/playerjailtime /blockreport /blockask /a /ans /arules /ahelp /playerstats\n/acmds /aod /asay /(un)freeze /goto /jail /kick /spawn\n/spec(off) /warn\n\n", string); 
            if(playerData[playerid][playerLevel] >= 2) 
            format(string, sizeof(string), "%s{98B0CD}LEVEL 2 COMMANDS{51FF00}\n/(start)duel /alog /vrespawn /clearchat /explode /(un)mute /playerweapons\n/arenas /blockask /blockreport \n\n", string); 
            if(playerData[playerid][playerLevel] >= 3) 
            format(string, sizeof(string), "%s{98B0CD}LEVEL 3 COMMANDS{51FF00}\n/jetpack /parachute /cleardeath /playertokens /playerjob /forcerules /forcecoptutorial\n/getpforevent /get /resetweapons /ban /vc /destroyallav /vdestroy\n\n", string); 
            if(playerData[playerid][playerLevel] >= 4) 
            format(string, sizeof(string), "%s{98B0CD}LEVEL 4 COMMANDS{51FF00}\n/(un)freezeall /givejetpack /oban /forceaod /fakeban /acount /ann /adkill\n/(un)copban /(un)armyban /resetiks /unban /respawnalluv\n\n", string); 
            if(playerData[playerid][playerLevel] >= 5) 
            format(string, sizeof(string), "%s{98B0CD}LEVEL 5 COMMANDS{51FF00}\n/fakechat /allowspec /adminname /removename /teleport /setint /setvw /setbc\n/data /saveallstats /saveallgang /faketip /resetallweapons /giveallcookies /giveweapons\n", string); 
            format(string, sizeof(string), "%s/ahealall /cwspy /createhouse /deletehouse /respawnallv\n/gotocase /startcase /houseinfo\n\n", string); 
            if(playerData[playerid][playerLevel] >= 6) 
            format(string, sizeof(string), "%s{98B0CD}LEVEL 6 COMMANDS{51FF00}\n/(fine)givetoken /gotoloc /standard-silver-gold-goldplusvip \n/setadmin /ping /fine /givecash /(fine)givecookies /givemoney /giveallcash\n", string); 
            format(string, sizeof(string), "%s/give(all)xp /giveallweapons /doublexp \kickwarp \n /rapidfire /carwarp /airbrake /poptyres /changename /playerhouses", string); 
            ShowPlayerDialog(playerid, 200, DIALOG_STYLE_MSGBOX, "Admin Commands", string, "OK", ""); 
            return 1; 
        } 
    } 
    return 0; 
}
But error remain same !
Reply
#7

Help Me Out Please!
Reply
#8

\kickwarp

\k
Reply
#9

Ahh I Dont Get That!
Reply
#10

Quote:
Originally Posted by OneDay
Посмотреть сообщение
\kickwarp

\k
+Reped Thnx!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)