public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/enter", cmdtext, true, 10) == 0)
{
if (PlayerToPoint(1, playerid, -2660.8972,1423.4766,906.4609))
{
SetPlayerPos(playerid, 1630.1722,1789.5437,10.8203);
SendClientMessage(playerid, 0xFF8080FF, " Elevator: Press the 'R' button to lift up to the roof top (( /roof )) ");
}
}
return 1;
}
if (strcmp("/roof", cmdtext, true, 10) == 0) // Line 50
{
if (elevused[playerid] == 0) // Line 52
{
if (PlayerToPoint(4, playerid, 1630.1722,1789.5437,10.8203)) // Line 54
{
SendClientMessage(playerid, 0xFF8080FF, " Elevator: You're being lifted up ");
SetTimer("liftup1", 2000, 1);
}
}
return 1; // Line 60
}
if (strcmp("/exit", cmdtext, true, 10) == 0) // Line 63
{
if (elevused[playerid] == 1) // Line 65
{
if (PlayerToPoint(4, playerid, 1630.1722, 1789.5437, 10.8203)) // Line 67
{
SetPlayerPos(playerid, 1628.8466,1780.0254,30.4688);
}
}
return 1; // Line 72
}
return 0; // Line 74
}
C:\Users\Soka\Desktop\Server\elevator.pwn(50) : error 010: invalid function or declaration C:\Users\Soka\Desktop\Server\elevator.pwn(52) : error 010: invalid function or declaration C:\Users\Soka\Desktop\Server\elevator.pwn(54) : error 010: invalid function or declaration C:\Users\Soka\Desktop\Server\elevator.pwn(60) : error 010: invalid function or declaration C:\Users\Soka\Desktop\Server\elevator.pwn(63) : error 010: invalid function or declaration C:\Users\Soka\Desktop\Server\elevator.pwn(65) : error 010: invalid function or declaration C:\Users\Soka\Desktop\Server\elevator.pwn(67) : error 010: invalid function or declaration C:\Users\Soka\Desktop\Server\elevator.pwn(72) : error 010: invalid function or declaration C:\Users\Soka\Desktop\Server\elevator.pwn(74) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 9 Errors.
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/enter", cmdtext, true) == 0)
{
if (PlayerToPoint(1, playerid, -2660.8972,1423.4766,906.4609))
{
SetPlayerPos(playerid, 1630.1722,1789.5437,10.8203);
SendClientMessage(playerid, 0xFF8080FF, " Elevator: Press the 'R' button to lift up to the roof top (( /roof )) ");
return 1;
}
}
if (strcmp("/roof", cmdtext, true) == 0) // Line 50
{
if (elevused[playerid] == 0) // Line 52
{
if (PlayerToPoint(4, playerid, 1630.1722,1789.5437,10.8203)) // Line 54
{
SendClientMessage(playerid, 0xFF8080FF, " Elevator: You're being lifted up ");
SetTimer("liftup1", 2000, 1);
return 1;
}
}
}
if (strcmp("/exit", cmdtext, true) == 0) // Line 63
{
if (elevused[playerid] == 1) // Line 65
{
if (PlayerToPoint(4, playerid, 1630.1722, 1789.5437, 10.8203)) // Line 67
{
SetPlayerPos(playerid, 1628.8466,1780.0254,30.4688);
return 1;
}
}
}
return 0; // Line 74
}
Originally Posted by //exora
pawn Код:
|