16.03.2014, 02:48
Hey guys, as a new scripter to pawno I'm trying to understand dcmd commands, seems pretty easy to do so but here's one problem I have.
There's nothing wrong when i compile but when i type /pb ingame it says nothing, not even Unkown Command.
What did i miss? Please explain why and what I've done wrong here even if it is, to you, obvious, note that i'm very new to scripting overall.
Thnx!
There's nothing wrong when i compile but when i type /pb ingame it says nothing, not even Unkown Command.
What did i miss? Please explain why and what I've done wrong here even if it is, to you, obvious, note that i'm very new to scripting overall.
pawn Код:
dcmd_pb(playerid, params[])
{
#pragma unused params
if(GetPlayerScore(playerid) >= 1000)
{
new Name[MAX_PLAYER_NAME]; GetPlayerName(playerid, Name, sizeof(Name));
new string[128];
format(string, sizeof(string), "{FF0000}===REQUESTING BACKUP=== {FFFFFF}%s {FF0000}is requesting for backup!", Name);
printf("%s", string);
for(new i = 0; i < MAX_PLAYERS; i++)
SendClientMessage(playerid, RED,"You need to be Rank 4 to use this command!");
}
return 1;
}