hello i tried to make an gps system and dmv and when i put the gps and dmv in gamemode i get this errors
and there is the lines
what i make wrong at the code?
Code:
C:\Users\dino\Desktop\Texture-Studio-master\gamemodes\uzzi25.pwn(1105 -- 1106) : error 029: invalid expression, assumed zero
C:\Users\dino\Desktop\Texture-Studio-master\gamemodes\uzzi25.pwn(1109) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\dino\Desktop\Texture-Studio-master\gamemodes\uzzi25.pwn(1109) : warning 215: expression has no effect
Code:
public OnPlayerEnterCheckpoint(playerid) {
switch(GetPVarInt(playerid, "CP")) {
case DMV:
{
if(cpDMV [playerid] >= 0 || cpDMV [playerid] < 14) update_dmv(playerid);
}
case GPS:
{
if(GPSCP[playerid] != 0) {
GPSC
}
}
}
return 1;
}
forward GPSC(playerid);
public GPSC(playerid) {
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_GPS, "Ai ajuns la destinatie, distractie placuta.");
GPSCP[playerid] = 0;
return 1;
}