#define TerroristCP 2216.9297,-1147.5685,1025.7969
public OnPlayerSpawn(playerid)
{
SetPlayerInterior(playerid,15);
if (GetPlayerSkin(playerid) == 29)
{
SetPlayerCheckpoint(playerid, TerroristCP, 3.0);
}
return 1;
}
C:\Documents and Settings\Rein\Desktop\SAMP server\gamemodes\CvT.pwn(152) : error 017: undefined symbol "TerroristCP" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
new TerroristCP[MAX_PLAYERS];
public OnPlayerSpawn(playerid)
{
SetPlayerInterior(playerid,15);
if (GetPlayerSkin(playerid) == 29)
{
TerroristCP[playerid]=SetPlayerCheckpoint(playerid, 2216.9297,-1147.5685,1025.7969, 3.0);
}
return 1;
}
|
C:\Documents and Settings\Rein\Desktop\SAMP server\gamemodes\CvT.pwn(159) : error 017: undefined symbol "TerroristCP" C:\Documents and Settings\Rein\Desktop\SAMP server\gamemodes\CvT.pwn(159) : warning 215: expression has no effect C:\Documents and Settings\Rein\Desktop\SAMP server\gamemodes\CvT.pwn(159) : error 001: expected token: ";", but found "]" C:\Documents and Settings\Rein\Desktop\SAMP server\gamemodes\CvT.pwn(159) : error 029: invalid expression, assumed zero C:\Documents and Settings\Rein\Desktop\SAMP server\gamemodes\CvT.pwn(159) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
|
Which line is giving you errors? |
if (GetPlayerSkin(playerid) == 29)
{
SetPlayerCheckpoint(playerid, TerroristCP, 3.0);
}
public OnPlayerSpawn(playerid)
{
SetPlayerInterior(playerid,15);
if (GetPlayerSkin(playerid) == 29)
{
SetPlayerCheckpoint(playerid, 2216.9297,-1147.5685,1025.7969, 3.0);
}
return 1;
}
if (GetPlayerSkin(playerid) == 29)
{
SetPlayerCheckpoint(playerid, TerroristCP, 3.0);
}
Since this is the TerroristCP = 2216.9297,-1147.5685,1025.7969 then remove TerroristCP from the SetPlayerCheckPoint and put the X Y Z, and add another ) after that one on GetPlayerSkin
if (GetPlayerSkin(playerid) == 29))
{
SetPlayerCheckpoint(playerid,2216.9297,-1147.5685,1025.7969,3);
}