case problem
#1

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:

Код:
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;
}
Reply


Messages In This Thread
case problem - by Nonameman - 04.06.2010, 20:28
Re: case problem - by ViruZZzZ_ChiLLL - 04.06.2010, 20:30
Re: case problem - by Kar - 04.06.2010, 20:31
Re: case problem - by Nonameman - 04.06.2010, 20:32
Re: case problem - by Sergei - 04.06.2010, 20:32
Re: case problem - by Nonameman - 04.06.2010, 20:33

Forum Jump:


Users browsing this thread: 1 Guest(s)