AleX1321 Posted March 4, 2013 Posted March 4, 2013 Am facut o comanda pentru cei noi intrati sa primeasca arme personale.[pawn] if(strcmp(cmd, "/newbie", true)==0) { GetPlayerName(playerid,giveplayer,sizeof(giveplayer)); if(PlayerInfo[playerid][pLevel] >= 3) { new playa = ReturnUser(tmp); if(ngun[playa] >= 2) { SendClientMessage(playerid, COLOR_GRAD1, " Deja ai 2 puncte de arme"); } else { ngun[playa] += 2; GetPlayerName(playerid, sendername,sizeof(sendername)); GetPlayerName(playa,playername,sizeof(playername)); format(string, sizeof(string), "Ai primit 2 punce de arma infinita. Foloseste /dgun", sendername); SendClientMessage(playa, COLOR_LIGHTBLUE, string); } } else SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command ."); }[/pawn]Problema,dau /newbie dar imi zice server unknow command am schimbat numele comenzi si tot degeaba.Care ar putea fi problema?
AleX1321 Posted March 5, 2013 Author Posted March 5, 2013 Celalalte comenzi iti merg 8-| ?Fara probleme.
Question
AleX1321
Am facut o comanda pentru cei noi intrati sa primeasca arme personale.
[pawn] if(strcmp(cmd, "/newbie", true)==0)
{
GetPlayerName(playerid,giveplayer,sizeof(giveplayer));
if(PlayerInfo[playerid][pLevel] >= 3)
{
new playa = ReturnUser(tmp);
if(ngun[playa] >= 2)
{
SendClientMessage(playerid, COLOR_GRAD1, " Deja ai 2 puncte de arme");
}
else
{
ngun[playa] += 2;
GetPlayerName(playerid, sendername,sizeof(sendername));
GetPlayerName(playa,playername,sizeof(playername));
format(string, sizeof(string), "Ai primit 2 punce de arma infinita. Foloseste /dgun", sendername);
SendClientMessage(playa, COLOR_LIGHTBLUE, string);
}
}
else SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command .");
}[/pawn]
Problema,dau /newbie dar imi zice server unknow command am schimbat numele comenzi si tot degeaba.Care ar putea fi problema?
2 answers to this question
Recommended Posts