Problem! - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem! (
/showthread.php?tid=75520)
Problem! -
Packer5 - 02.05.2009
I spent ages trying to work out whats wrong with this. Can someone help me?
Код:
if(strcmp(cmdtext,"/offduty", true) == 0)
{
if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
{
if(OnDuty[playerid]==1)
{
ShowMenuForPlayer(copcivil, playerid);
TogglePlayerControllable(playerid, 0);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1,"Your not off duty");
}
else
{
SendClientMessage(playerid, COLOR_GRAD1,"You are not a member of LSPD!");
}
}
Re: Problem! -
ICECOLDKILLAK8 - 02.05.2009
You were missing a }
pawn Код:
if(strcmp(cmdtext,"/offduty", true) == 0)
{
if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
{
if(OnDuty[playerid]==1)
{
ShowMenuForPlayer(copcivil, playerid);
TogglePlayerControllable(playerid, 0);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1,"Your not off duty");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1,"You are not a member of LSPD!");
}
}
Re: Problem! -
Packer5 - 02.05.2009
Ok, thank you very much