SA-MP Forums Archive
[Help] Problem width switch - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help] Problem width switch (/showthread.php?tid=323147)



[Help] Problem width switch - DarkScripter - 04.03.2012

The my switch appers errors:
pawn Code:
switch(checkpointid)
    {
        case cBoys:         PlayerData[playerid][Dominando] = 501;
        case cChineses:     PlayerData[playerid][Dominando] = 2123;
        case cCowBoys:      PlayerData[playerid][Dominando] = 4564;
        case cGirls:        PlayerData[playerid][Dominando] = 78975;
        case cGroove:       PlayerData[playerid][Dominando] = 4567;
    }
What fixe this ?


Re: [Help] Problem width switch - Scrillex - 04.03.2012

Give the error and line...


Re: [Help] Problem width switch - DarkScripter - 04.03.2012

Errors

pawn Code:
error 008: must be a constant expression; assumed zero
error 008: must be a constant expression; assumed zero
error 008: must be a constant expression; assumed zero
error 008: must be a constant expression; assumed zero
error 008: must be a constant expression; assumed zero



Re: [Help] Problem width switch - Babul - 04.03.2012

are those values
Code:
cBoys
cChineses
cCowBoys
cGirls
cGroove
declared as static? do they ever change?