Errors.
#1

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?
Reply
#2

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)