SA-MP Forums Archive
how can i fix - 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: how can i fix (/showthread.php?tid=218809)



how can i fix - yarrum3 - 31.01.2011

my error is
Код:
C:\Users\Ryan\Desktop\World Wide RolePlay\gamemodes\WWRP.pwn(4448) : warning 225: unreachable code
C:\Users\Ryan\Desktop\World Wide RolePlay\gamemodes\WWRP.pwn(4448) : error 029: invalid expression, assumed zero
the script is
Код:
				{
					{
					    if(IsBIKEMADNESSactive == 1)
						{
            				SendClientMessage(playerid,RED,"There is all redey a group in the bike madness");
            				return 1;
				        }
				        if(IsPlayerInBikeMadness == 10)
				        {
				            return 1;
				        }
				        else
				        {
				            IsPlayerInBikeMadness += 1;
							return 1;
						}
						else // this is line 4448 here
						{
						    SendClientMessage(playerid,RED,"The Bike Madness Is full");
						    return 1;
						}
					}
				}



Re: how can i fix - MMiz - 31.01.2011

Are you using 2 else's,thats why it wont work


Re: how can i fix - Steven Paul - 31.01.2011

please post your full code