#1

dcmd_Startstunt(playerid, params[])
{
#pragma unused params
if(IsPlayerInRangeOfPoint(playerid, 15.0, 1791.5736, 1453.3450, 13.3069))
{
SetPlayerCheckpoint(playerid,2103.8098, 1483.0463, 23.6295, 7.0);
}
else
{
SendClientMessage(playerid,COLORE_ROSSO,"You are not in a stunt zone");
}
}
else
{
if(IsPlayerInRangeOfPoint(playerid, 15.0, 1791.5736, 1453.3450, 13.3069))
{
SetPlayerCheckpoint(playerid,2103.8098, 1483.0463, 23.6295, 7.0);
}
return 1;
}
return 0;
}

C:\Users\DAVIDE\Desktop\GangSystem\gamemodes\gangs ystem.pwn(321) : error 010: invalid function or declaration
C:\Users\DAVIDE\Desktop\GangSystem\gamemodes\gangs ystem.pwn(323) : error 010: invalid function or declaration
C:\Users\DAVIDE\Desktop\GangSystem\gamemodes\gangs ystem.pwn(327) : error 010: invalid function or declaration
C:\Users\DAVIDE\Desktop\GangSystem\gamemodes\gangs ystem.pwn(329) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#2

If you could provide line-numbers as well, it would make things easier
Reply
#3

pawn Код:
dcmd_startstunt(playerid, params[])
{
    #pragma unused params
    if(IsPlayerInRangeOfPoint(playerid, 20.0, 1791.5736, 1453.3450, 13.3069))
    {
        SetPlayerCheckpoint(playerid,2103.8098, 1483.0463, 23.6295, 7.0);
    }
    else
    {
        SendClientMessage(playerid,COLORE_ROSSO,"You are not in a stunt zone");
    }
    return 1;
}
First of all, you don't need return 0; here. Then, you can use 2 times else. This cause errors.
Reply
#4

Quote:
Originally Posted by HY
Посмотреть сообщение
pawn Код:
dcmd_startstunt(playerid, params[])
{
    #pragma unused params
    if(IsPlayerInRangeOfPoint(playerid, 20.0, 1791.5736, 1453.3450, 13.3069))
    {
        SetPlayerCheckpoint(playerid,2103.8098, 1483.0463, 23.6295, 7.0);
    }
    else
    {
        SendClientMessage(playerid,COLORE_ROSSO,"You are not in a stunt zone");
    }
    return 1;
}
i want make example case case 1 if you are in range of point creteckercheckpoin(player x y z...),
case 2 create....(... x2 y2 z3 ....);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)