SA-MP Forums Archive
Help - 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: Help (/showthread.php?tid=376054)



Help - N0FeaR - 08.09.2012

Код:
C:\Users\Hellman.Hellmans-PC\Desktop\snusk\gamemodes\P-RP.pwn(14668) : error 001: expected token: ";", but found "}"
pawn Код:
else if(strcmp(x_nr,"lock",true) == 0)
            {
                for(new i = 0; i < sizeof(BizzInfo); i++)
                {
                    if (PlayerToPoint(3, playerid,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]) || PlayerToPoint(3, playerid,BizzInfo[i][bExitX], BizzInfo[i][bExitY], BizzInfo[i][bExitZ]))
                    {
                        if(PlayerInfo[playerid][pPbiskey] == i)
                        {
                            if(BizzInfo[i][bLocked] == 0)
                            {
                                BizzInfo[i][bLocked] = 1;
                                SendClientMessage(playerid,COLOR_LIGHTRED,"Door locked");
                                PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
                                return 1;
                            }
                        }
                        else
                        {
                            GameTextForPlayer(playerid, "~r~You Dont Have A Key", 5000, 6);
                            return 1
                    line 14668  }
                    }
                }
            }



Re: Help - Never Forgive - 08.09.2012

Код:
else if(strcmp(x_nr,"lock",true) == 0)
            {
                for(new i = 0; i < sizeof(BizzInfo); i++)
                {
                    if (PlayerToPoint(3, playerid,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]) || PlayerToPoint(3, playerid,BizzInfo[i][bExitX], BizzInfo[i][bExitY], BizzInfo[i][bExitZ]))
                    {
                        if(PlayerInfo[playerid][pPbiskey] == i)
                        {
                            if(BizzInfo[i][bLocked] == 0)
                            {
                                BizzInfo[i][bLocked] = 1;
                                SendClientMessage(playerid,COLOR_LIGHTRED,"Door locked");
                                PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
                                return 1;
                            }
                        }
                        else
                        {
                            GameTextForPlayer(playerid, "~r~You Dont Have A Key", 5000, 6);
                            return 1;
                        }
                    }
                }
            }
This forum requires that you wait 120 seconds between posts. Please try again in 81 seconds.


Re: Help - N0FeaR - 08.09.2012

Quote:
Originally Posted by Never Forgive
Посмотреть сообщение
Код:
else if(strcmp(x_nr,"lock",true) == 0)
            {
                for(new i = 0; i < sizeof(BizzInfo); i++)
                {
                    if (PlayerToPoint(3, playerid,BizzInfo[i][bEntranceX], BizzInfo[i][bEntranceY], BizzInfo[i][bEntranceZ]) || PlayerToPoint(3, playerid,BizzInfo[i][bExitX], BizzInfo[i][bExitY], BizzInfo[i][bExitZ]))
                    {
                        if(PlayerInfo[playerid][pPbiskey] == i)
                        {
                            if(BizzInfo[i][bLocked] == 0)
                            {
                                BizzInfo[i][bLocked] = 1;
                                SendClientMessage(playerid,COLOR_LIGHTRED,"Door locked");
                                PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
                                return 1;
                            }
                        }
                        else
                        {
                            GameTextForPlayer(playerid, "~r~You Dont Have A Key", 5000, 6);
                            return 1;
                        }
                    }
                }
            }
This forum requires that you wait 120 seconds between posts. Please try again in 81 seconds.
Thanks, this working.