10.03.2012, 07:43
Im trying to create a checkpoint with a command but i dont have any idea how to give it a checkpoint id.. :S
Using streamer!
Like:
Then
But keep getting these errors fully sure not because of code because of checkpoints.
Note: I know MedicC and pack is not same but its just an example!
Using streamer!
Like:
pawn Код:
new Pack;
pawn Код:
CMD:pack(playerid,params[])
{
pack = CreateDynamicCP(X, Y, Z, 1.0,-1,-1,-1,10.0);
return 1;
}
pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid = pack)
{
// Code in here
}
return 1;
}
pawn Код:
(217) : warning 211: possibly unintended assignment
(217) : error 017: undefined symbol "MedicC"
(234) : error 017: undefined symbol "MedicC"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase