PPC Commands dont work i hadd -
iDeal - 16.02.2012
why these commands no work i add
COMMAND:acmds(playerid, params[])
{
if (APlayerData[playerid][PlayerLevel] >= 1)
{
SendClientMessage(playerid, 0xFFFFFFFF, "NOTE; Depending on your admin level, some may not be available to you.");
SendClientMessage(playerid, 0xFFFFFFFF, "/cash (AMOUNT), /givecash (PLAYERID)(AMOUNT), /setscore (PLAYERID)(SCORE), /setlevel (ID)(AMOUNT)");
SendClientMessage(playerid, 0xFFFFFFFF, "/createhouse(Obvious), /delhouse(Obvious), /goto(ID), /get(ID)");
}
else {
SendClientMessage(playerid, 0xFFFFFFFF, "You are not an admin, Therefore cannot view Admin Commands.");
}
return 1;
}
no work, pleassseeeee help!
Re: PPC Commands dont work i hadd -
iDeal - 16.02.2012
SOMEONE HELP!!!!!!!!!!!
Re: PPC Commands dont work i hadd -
iDeal - 16.02.2012
How I add new cmd, i dont no if i get errors, how i find ouT, if i do adding them?
Re: PPC Commands dont work i hadd -
iDeal - 16.02.2012
No one knows?
Re: PPC Commands dont work i hadd -
KingHual - 16.02.2012
Press F5 to compile the script ...
Re: PPC Commands dont work i hadd -
iDeal - 16.02.2012
No errors come up, commands go in PPC_PlayerCommands.txt., but I no errorrs come up.
HELP?
Re: PPC Commands dont work i hadd -
iDeal - 16.02.2012
HELP, Why the command no work.
Re: PPC Commands dont work i hadd -
Twisted_Insane - 16.02.2012
I don't know what your problem is, you can't even explain it therefore right! But try this again, you sure it's like this?
PHP код:
CMD:acmds(playerid, params[])
{
if (APlayerData[playerid][PlayerLevel] >= 1)
{
SendClientMessage(playerid, 0xFFFFFFFF, "NOTE; Depending on your admin level, some may not be available to you.");
SendClientMessage(playerid, 0xFFFFFFFF, "/cash (AMOUNT), /givecash (PLAYERID)(AMOUNT), /setscore (PLAYERID)(SCORE), /setlevel (ID)(AMOUNT)");
SendClientMessage(playerid, 0xFFFFFFFF, "/createhouse(Obvious), /delhouse(Obvious), /goto(ID), /get(ID)");
}
else return SendClientMessage(playerid, 0xFFFFFFFF, "You are not an admin, Therefore cannot view Admin Commands.");
}
return 1;
}
1. You sure there are no errors?
2. What happens ingame? "SERVER:Unknown Command" message or what?
Re: PPC Commands dont work i hadd -
iDeal - 16.02.2012
Quote:
Originally Posted by Twisted_Insane
I don't know what your problem is, you can't even explain it therefore right! But try this again, you sure it's like this?
PHP код:
CMD:acmds(playerid, params[])
{
if (APlayerData[playerid][PlayerLevel] >= 1)
{
SendClientMessage(playerid, 0xFFFFFFFF, "NOTE; Depending on your admin level, some may not be available to you.");
SendClientMessage(playerid, 0xFFFFFFFF, "/cash (AMOUNT), /givecash (PLAYERID)(AMOUNT), /setscore (PLAYERID)(SCORE), /setlevel (ID)(AMOUNT)");
SendClientMessage(playerid, 0xFFFFFFFF, "/createhouse(Obvious), /delhouse(Obvious), /goto(ID), /get(ID)");
}
else return SendClientMessage(playerid, 0xFFFFFFFF, "You are not an admin, Therefore cannot view Admin Commands.");
}
return 1;
}
1. You sure there are no errors?
2. What happens ingame? "SERVER:Unknown Command" message or what?
|
Yeah thats what happens, when I enter it.
Re: PPC Commands dont work i hadd -
Twisted_Insane - 16.02.2012
Lol, that's strange, eh?
What about this:
PHP код:
CMD:acmds(playerid, params[])
{
if (APlayerData[playerid][LoggedIn] == true)
{
if (APlayerData[playerid][PlayerLevel] >= 1)
{
SendClientMessage(playerid, 0xFFFFFFFF, "NOTE; Depending on your admin level, some may not be available to you.");
SendClientMessage(playerid, 0xFFFFFFFF, "/cash (AMOUNT), /givecash (PLAYERID)(AMOUNT), /setscore (PLAYERID)(SCORE), /setlevel (ID)(AMOUNT)");
SendClientMessage(playerid, 0xFFFFFFFF, "/createhouse(Obvious), /delhouse(Obvious), /goto(ID), /get(ID)");
}
else return SendClientMessage(playerid, 0xFFFFFFFF, "You are not an admin, Therefore cannot view Admin Commands.");
}
return 1;
}