#include <a_samp>
#define COLOR_LIGHTBLUE 0x33CCFFAA
#pragma tabsize 0
new ACP;
public OnPlayerSpawn(playerid)
{
ACP = SetPlayerCheckpoint(playerid, 1874.2103, -1642.0880, 31.8047, 3.00);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/airport", cmdtext, true) == 0)
{
if(IsPlayerInCheckpoint(playerid) == ACP)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Teleported.");
}
else if(IsPlayerInCheckpoint(playerid) != ACP)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You are not in the checkpoint");
}
return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
if (IsPlayerInCheckpoint(playerid)) {
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /airport to teleport you to your airport");
}
return 1;
}
C:\Documents and Settings\Gustavo\Desktop\samp02Xserver.win32\filterscripts\Checkpoint.pwn(31) : error 029: invalid expression, assumed zero C:\Documents and Settings\Gustavo\Desktop\samp02Xserver.win32\filterscripts\Checkpoint.pwn(31) : error 004: function "OnPlayerEnterCheckpoint" is not implemented C:\Documents and Settings\Gustavo\Desktop\samp02Xserver.win32\filterscripts\Checkpoint.pwn(38) : error 030: compound statement not closed at the end of file (started at line 18) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.

|
Originally Posted by Hot
... I still needing help .
|
#include <a_samp>
#define COLOR_LIGHTBLUE 0x33CCFFAA
#pragma tabsize 0
new ACP;
public OnPlayerSpawn(playerid)
{
ACP = SetPlayerCheckpoint(playerid, 1874.2103, -1642.0880, 31.8047, 3.00);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/airport", cmdtext, true) == 0)
{
if(IsPlayerInCheckpoint(playerid) == ACP)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Teleported.");
}
else if(IsPlayerInCheckpoint(playerid) != ACP)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You are not in the checkpoint");
}
return 1;
}
}
public OnPlayerEnterCheckpoint(playerid)
{
if (IsPlayerInCheckpoint(playerid))
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /airport to teleport you to your airport");
}
return 1;
}
if (strcmp("/airport", cmdtext, true) == 0)
{
if(IsPlayerInCheckpoint(playerid))
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Teleported.");
}
else if(!IsPlayerInCheckpoint(playerid))
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You are not in the checkpoint");
}
return 1;
}
#include <a_samp>
#define COLOR_LIGHTBLUE 0x33CCFFAA
#pragma tabsize 0
public OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid, 1874.2103, -1642.0880, 31.8047, 3.00);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/airport", cmdtext, true) == 0)
{
if(IsPlayerInCheckpoint(playerid))
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Teleported.");
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You are not in the checkpoint");
}
return 1;
}
}
public OnPlayerEnterCheckpoint(playerid)
{
if (IsPlayerInCheckpoint(playerid))
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /airport to teleport you to your airport");
}
return 1;
}