Jump to content
  • 0

checkpoint?


Flyer-Satyr

Question

7 answers to this question

Recommended Posts

Sus in script:

[pawn]new NumeCheckpoint;[/pawn]

Sub OnGameModeInit:

[pawn]NumeCheckpoint = CreateDynamicCheckpoint(........................);[/pawn]

Si la OnPlayerEnterDynamicCP trebuie sa pui

[pawn]if(checkpointid == NumeCheckpoint)

{

    //cod pentru checkpointul respectiv

}[/pawn]

Link to comment
Share on other sites

plm :| alta problema

error:      black.pwn(4418) : error 017: undefined symbol "checkpointid"

la

public OnPlayerEnterDynamicCP(playerid)

{

if(checkpointid == pizzacp)

    {

    ShowMenuForPlayer(pizza,playerid);

    }

}

ce naiba mai are?:|

Trebuie sa pui in loc de

[pawn]public OnPlayerEnterDynamicCP(playerid)[/pawn]

asta:

[pawn]public OnPlayerEnterDynamicCP(playerid, checkpointid)[/pawn]

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.