errors? - 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: errors? (
/showthread.php?tid=551110)
errors? -
CrazyManiac - 16.12.2014
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/enter", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2125.1001, -1776.7, 12.9))
(
SetPlayerPos(playerid, 2114.2, -1755.6, 892.90002);
return 1;
)
}
return 0;
}
soz, havent been scripting in a while.
Re: errors? -
Banana_Ghost - 16.12.2014
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/enter", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2125.1001, -1776.7, 12.9))
(
SetPlayerPos(playerid, 2114.2, -1755.6, 892.90002);
)
return 1;
}
return 0;
}
The return 1 was in the wrong place
Re: errors? -
Stinged - 17.12.2014
Quote:
Originally Posted by Banana_Ghost
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/enter", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 7.0, 2125.1001, -1776.7, 12.9)) ( SetPlayerPos(playerid, 2114.2, -1755.6, 892.90002); ) return 1; } return 0; }
The return 1 was in the wrong place
|
That would not fix the problem.
CrazyManiac, you're using ( ) instead of { } under IsPlayerInRangeOfPoint