enter command?
#1

pawn Код:
dcmd_enter(playerid, params[])
{
    if(PlayerToPoint(5.0, playerid, ,1480.8611, -1771.3727, 8.7958;
    SendClientMessage(playerid, COLOR_YELLOW, "Welcome to City Hall");
    return 1;
}
The PlayerToPoint is giving me errors and Warnings

Код:
C:\Users\BooNii3\Geramia RP\LS-RP\gamemodes\LSRP.pwn(154) : error 029: invalid expression, assumed zero
C:\Users\BooNii3\Geramia RP\LS-RP\gamemodes\LSRP.pwn(154) : warning 215: expression has no effect
C:\Users\BooNii3\Geramia RP\LS-RP\gamemodes\LSRP.pwn(154) : warning 215: expression has no effect
C:\Users\BooNii3\Geramia RP\LS-RP\gamemodes\LSRP.pwn(154) : warning 215: expression has no effect
Reply
#2

pawn Код:
dcmd_enter(playerid, params[])
{
    if(PlayerToPoint(5.0, playerid, 1480.8611, -1771.3727, 8.7958))
        SendClientMessage(playerid, COLOR_YELLOW, "Welcome to City Hall");
    return 1;
}
Reply
#3

Thanks it is fixed now
Reply
#4

I now have another problem :/,

pawn Код:
dcmd_enter(playerid, params[])
{
    {
        #pragma unused params
        PlayerToPoint(25.0, playerid, 1480.8611,-1771.3727,18.7958);
        SendClientMessage(playerid, COLOR_YELLOW, "Welcome to City Hall");
        SetPlayerInterior(playerid, 3);
        SetPlayerPos(playerid, 384.808624,173.804992,1008.382812);
    }
    {
        PlayerToPoint(25.0, playerid, 1554.6921, -1675.5272, 16.1953);
        SendClientMessage(playerid, COLOR_YELLOW, "Welcome to LSPD");
        SetPlayerInterior(playerid, 3);
        SetPlayerPos(playerid, 288.745971, 169.350997, 1007.171875);
        return 1;
    }
}
Can you fix the command so that i can enter the City Hall at the pickup for City Hall and I can enter LSPD at the Pickup for LSPD?
Reply
#5

pawn Код:
dcmd_enter(playerid, params[])
{
        #pragma unused params
    if (PlayerToPoint(5.0, playerid, 1480.8611,-1771.3727,18.7958))
    {
        SendClientMessage(playerid, COLOR_YELLOW, "Welcome to City Hall");
        SetPlayerInterior(playerid, 3);
        SetPlayerPos(playerid, 384.808624,173.804992,1008.382812);
    }
    else if (PlayerToPoint(5.0, playerid, 1554.6921, -1675.5272, 16.1953))
    {
        SendClientMessage(playerid, COLOR_YELLOW, "Welcome to LSPD");
        SetPlayerInterior(playerid, 3);
        SetPlayerPos(playerid, 288.745971, 169.350997, 1007.171875);
    }
    return 1;
}
Reply
#6

pawn Код:
dcmd_enter(playerid, params[])
{
    #pragma unused params
    if(PlayerToPoint(25.0, playerid, 1480.8611,-1771.3727,18.7958)) {
        SendClientMessage(playerid, COLOR_YELLOW, "Welcome to City Hall");
        SetPlayerInterior(playerid, 3);
        SetPlayerPos(playerid, 384.808624,173.804992,1008.382812);
    }
    if(PlayerToPoint(25.0, playerid, 1554.6921, -1675.5272, 16.1953)) {
        SendClientMessage(playerid, COLOR_YELLOW, "Welcome to LSPD");
        SetPlayerInterior(playerid, 3);
        SetPlayerPos(playerid, 288.745971, 169.350997, 1007.171875);
    }
    return 1;
}
Compiles fine, didn't test because i felt no need to
Reply
#7

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)