Originally Posted by DavidC
Instead of
pawn Код:
LSPDGarage = CreateDynamicCP(1525.3311,-1677.8967,5.8906,2,-1,-1,-1,100); new LSPDGarage; #include <streamer>
Do it in this order:
pawn Код:
#include <streamer> new LSPDGarage; LSPDGarage = CreateDynamicCP(1525.3311,-1677.8967,5.8906,2,-1,-1,-1,100);
in fact you can just do this
pawn Код:
#include <streamer> new LSPDGarage = CreateDynamicCP(1525.3311,-1677.8967,5.8906,2,-1,-1,-1,100);
Then this:
pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid); { if(checkpointid = LSPDGarage) { SetPlayerInt(playerid, 3); SetPlayerPos(playerid, 1480.9470,-1767.6609,18.7958); } return 1; }
Change to:
pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid) //there should be no ; at the end, this is a callback { if(checkpointid = LSPDGarage) { SetPlayerInt(playerid, 3); SetPlayerPos(playerid, 1480.9470,-1767.6609,18.7958); } return 1; }
See if that works.
|