Is This Posible - 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: Is This Posible (
/showthread.php?tid=449583)
Is This Posible -
horsemeat - 09.07.2013
pawn Код:
CMD:enter(playerid, params[])
{
//code
//some type of return
}
//later or possibly on a different filter script
CMD:enter(playerid, parmas[])
{
//code
//some type of return
}
well the title says it all
Re: Is This Posible -
jakejohnsonusa - 09.07.2013
Why exactly do you have two of the same command? This is not possible, as the second enter command will never be reached (only the first one, then it will return).
You could do:
pawn Код:
CMD:enter(playerid, params[]){ //code
{
if(IsPlayerInRangeOf)
{
//code here
return 1;
}
else if(IsPlayerInRangeOfPoint)
{
//codehere
return 1;
}
}
That is assuming you just want them as different area's to enter. If not, what exactly do you want two for?
Re: Is This Posible -
Kuntum123 - 09.07.2013
DELETED!
Re: Is This Posible -
horsemeat - 09.07.2013
I know I was just checking if this was possible
Re: Is This Posible -
jakejohnsonusa - 09.07.2013
No, sorry, it will never get past the first enter command's return... UNLESS you:
1. Don't have a return at the end of the first enter command.
2. Have a return at the end of the second enter command.
3. Have the second enter command directly after the first one.
However, in which case it would be neater just to have it as one command. More or less because it would be reading both enter commands, starting with the first one.