Quantcast
Channel: SA-MP Forums - Filterscripts
Viewing all articles
Browse latest Browse all 595

[Tool/Web/Other] Errors at gps/dmv

$
0
0
hello i tried to make an gps system and dmv and when i put the gps and dmv in gamemode i get this errors

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

and there is the lines
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;
}

what i make wrong at the code?

Viewing all articles
Browse latest Browse all 595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>