20.10.2017, 10:57
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:-
Error line :-
Please Help Me!
Код:
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; }
Код:
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);