Scripting 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: Scripting Problem (
/showthread.php?tid=247320)
Scripting Problem -
Nuk3d1nk - 08.04.2011
Hello, I'm working on my new script.
The script has given me two errors which I am confused on how to continue with.
Errors:
Код:
C:\Users\****\Desktop\samp\gamemodes\APO.pwn(2398) : error 029: invalid expression, assumed zero
C:\Users\****\Desktop\samp\gamemodes\APO.pwn(2416) : warning 225: unreachable code
Line 2398
Код:
*2398*||||| if(PlayerInfo[playerid][BankRobbery] == 1 || IsPlayerAdmin(playerid) == 1))
*2399*||||| {
Line 2416
Код:
*2416*||||| return 1;
*2417*||||| }
If you could help me solve this, I would greatly appreciate.
Re: Scripting Problem - [L3th4l] - 08.04.2011
pawn Код:
if(PlayerInfo[playerid][BankRobbery] == 1 || IsPlayerAdmin(playerid) == 1)
Re: Scripting Problem -
grand.Theft.Otto - 08.04.2011
So I'm guessing it should look something like this all together...?
pawn Код:
if(PlayerInfo[playerid][BankRobbery] == 1 || IsPlayerAdmin(playerid) == 1))
{
// all codes between here
return 1;
}
I'm confused by how you formatted it above.
EDIT:
Lethal is right (above) You had an extra closing bracket ' ) '
Re: Scripting Problem -
Nuk3d1nk - 08.04.2011
Why Thank you for your help, I'm surprised I missed that. Although That was the same with multiple strings...but they did not error...interesting!
EDIT:
It turns out that line's string was the only one that was interrupted whilst the others stayed able to be used.
Re: Scripting Problem -
SchurmanCQC - 08.04.2011
Код:
*2398*||||| if(PlayerInfo[playerid][BankRobbery] == 1 || IsPlayerAdmin(playerid) == 1)
*2399*||||| {