SA-MP Forums Archive
PPC Commands dont work i hadd - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: PPC Commands dont work i hadd (/showthread.php?tid=318802)



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(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?


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(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.


Re: PPC Commands dont work i hadd - Twisted_Insane - 16.02.2012

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;