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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Errors. (
/showthread.php?tid=186996)
Errors. -
Eeeh - 31.10.2010
My PAWN Compiler crashes, when i add these lines:
pawn Код:
if(strcmp(cmd, "/sisse", true) == 0)
{
if(PlayerToPoint(5.0, playerid, 2268.0627,2449.2893,3.5313 || (PlayerToPoint(5.0, playerid, 2283.1130,2452.8665,46.9775)
{
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid,230.1329,116.4465,1003.2188);
}
return 1;
}
if(strcmp(cmd, "/katusele", true) == 0)
{
if(PlayerToPoint(5.0, playerid, 230.1329,116.4465,1003.2188))
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2283.1130,2452.8665,46.9775);
}
return 1;
}
if(strcmp(cmd, "/garaaћi", true) == 0)
{
if(PlayerToPoint(5.0, playerid, 230.1329,116.4465,1003.2188))
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2268.0627,2449.2893,3.5313);
}
return 1;
}
Can Someone please fix that code?
Re: Errors. -
Hal - 31.10.2010
pawn Код:
if(strcmp(cmd, "/sisse", true) == 0)
{
if PlayerToPoint(5.0, playerid, 2268.0627,2449.2893,3.5313) || PlayerToPoint(5.0, playerid, 2283.1130,2452.8665,46.9775)
{
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid,230.1329,116.4465,1003.2188);
}
return 1;
}
if(strcmp(cmd, "/katusele", true) == 0)
{
if PlayerToPoint(5.0, playerid, 230.1329,116.4465,1003.2188)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2283.1130,2452.8665,46.9775);
}
return 1;
}
if(strcmp(cmd, "/garaaћi", true) == 0)
{
if PlayerToPoint(5.0, playerid, 230.1329,116.4465,1003.2188)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,2268.0627,2449.2893,3.5313);
}
return 1;
}
try that.