PPC Commands dont work i hadd
#1

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!
Reply
#2

SOMEONE HELP!!!!!!!!!!!
Reply
#3

How I add new cmd, i dont no if i get errors, how i find ouT, if i do adding them?
Reply
#4

No one knows?
Reply
#5

Press F5 to compile the script ...
Reply
#6

No errors come up, commands go in PPC_PlayerCommands.txt., but I no errorrs come up.
HELP?
Reply
#7

HELP, Why the command no work.
Reply
#8

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(playeridparams[])
{
if (
APlayerData[playerid][PlayerLevel] >= 1)
{
SendClientMessage(playerid0xFFFFFFFF"NOTE; Depending on your admin level, some may not be available to you.");
SendClientMessage(playerid0xFFFFFFFF"/cash (AMOUNT), /givecash (PLAYERID)(AMOUNT), /setscore (PLAYERID)(SCORE), /setlevel (ID)(AMOUNT)");
SendClientMessage(playerid0xFFFFFFFF"/createhouse(Obvious), /delhouse(Obvious), /goto(ID), /get(ID)");
}
else return 
SendClientMessage(playerid0xFFFFFFFF"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?
Reply
#9

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(playeridparams[])
{
if (
APlayerData[playerid][PlayerLevel] >= 1)
{
SendClientMessage(playerid0xFFFFFFFF"NOTE; Depending on your admin level, some may not be available to you.");
SendClientMessage(playerid0xFFFFFFFF"/cash (AMOUNT), /givecash (PLAYERID)(AMOUNT), /setscore (PLAYERID)(SCORE), /setlevel (ID)(AMOUNT)");
SendClientMessage(playerid0xFFFFFFFF"/createhouse(Obvious), /delhouse(Obvious), /goto(ID), /get(ID)");
}
else return 
SendClientMessage(playerid0xFFFFFFFF"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.
Reply
#10

Lol, that's strange, eh?
What about this:

PHP код:
CMD:acmds(playeridparams[])
{
    if (
APlayerData[playerid][LoggedIn] == true)
    {
        if (
APlayerData[playerid][PlayerLevel] >= 1)
        {
            
SendClientMessage(playerid0xFFFFFFFF"NOTE; Depending on your admin level, some may not be available to you.");
            
SendClientMessage(playerid0xFFFFFFFF"/cash (AMOUNT), /givecash (PLAYERID)(AMOUNT), /setscore (PLAYERID)(SCORE), /setlevel (ID)(AMOUNT)");
            
SendClientMessage(playerid0xFFFFFFFF"/createhouse(Obvious), /delhouse(Obvious), /goto(ID), /get(ID)");
        }
            else return 
SendClientMessage(playerid0xFFFFFFFF"You are not an admin, Therefore cannot view Admin Commands.");
    }
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)