04.06.2010, 20:28
Hey,
I'm using [REL] Streamer Plugin v2.3.8, and I created a dynamic checkpoint, which i want to make work.
Here is the code:
I'm using [REL] Streamer Plugin v2.3.8, and I created a dynamic checkpoint, which i want to make work.
Here is the code:
Код:
new LottoCP; public OnGameModeInit() { LottoCP = CreateDynamicCP(2424.1038,-1742.7649,13.5443, 1, -1, 0, -1, 10); return 1; } public OnPlayerEnterDynamicCP(playerid, checkpointid) { switch(checkpointid) { case LottoCP: //the problem is with this line, the compiler's error message say: error 008: must be a constant expression; //assumed zero { SendClientMessage(playerid, color, "Welcome! Here you can buy lotto ticket with the /lotto command."); } } return 1; }