Doing things using one command instead of two.
#6

There we go! Thank you to everyone that assisted in getting this command to work. Much appreciated, take care people!

[quote=samgreen ]
Quote:
Originally Posted by jbtech
It almost did, then I get a Unreachable Warning for some reason. "\\Cpu-test1\samp servers\SAMRP\GAMEMO~1\samrp.pwn(31742) : warning 225: unreachable code" Right at the point where the command is closing off, right at the last return.

MoveObject(lspddoor, 247.27613, 72.55864, 1002.65979, 1);
LSPDDoor = true;
SendClientMessage(playerid, COLOR_GREY, "You've closed the door.");
return 1;
return 1;

Remove that last return statement. Pawn is complaining because every code branch will return a value. It's not possible for the code to ever reach that return statement.
Reply


Messages In This Thread
Doing things using one command instead of two. - by jbtech - 25.02.2009, 06:15
Re: Doing things using one command instead of two. - by joco96 - 25.02.2009, 06:36
Re: Doing things using one command instead of two. - by ]shizz[ - 25.02.2009, 09:20
Re: Doing things using one command instead of two. - by jbtech - 25.02.2009, 13:44
Re: Doing things using one command instead of two. - by samgreen - 25.02.2009, 15:58
Re: Doing things using one command instead of two. - by jbtech - 25.02.2009, 22:41

Forum Jump:


Users browsing this thread: 1 Guest(s)