help class error / warnings
#1

Help me please

PHP код:
C:\Users\Pгo Doce\Desktop\Mafia\gamemodes\mafia.pwn(383) : error 002only a single statement (or expressioncan follow each "case"
C:\Users\Pгo Doce\Desktop\Mafia\gamemodes\mafia.pwn(383 -- 384) : error 028invalid subscript (not an array or too many subscripts): "GetPlayerScore"
C:\Users\Pгo Doce\Desktop\Mafia\gamemodes\mafia.pwn(383 -- 385) : error 001expected token"}"but found "case"
C:\Users\Pгo Doce\Desktop\Mafia\gamemodes\mafia.pwn(383 -- 385) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
4 Errors

Lines

PHP код:
public OnPlayerRequestClass(playeridclassid)
{
    switch(
classid) {
        case 
.. 2Gang[playerid] = grove;
        case 
.. 5Gang[playerid] = ballas;
        case 
.. 8Gang[playerid] = vagos;
        case 
.. 11Gang[playerid] = aztecas;
         if(
GetPlayerScore(playerid) > 500)
           {
            case 
12 .. 14Gang[playerid] = cops;
        }
      }
    
SetPlayerPos(playerid,1984.4445,157.9501,55.9384);
    
SetPlayerCameraPos(playerid,1984.4445,160.9501,55.9384);
    
SetPlayerCameraLookAt(playerid,1984.4445,157.9501,55.9384);
    
SetPlayerFacingAngle(playerid,0.0);
    return 
1;

Reply


Messages In This Thread
help class error / warnings - by iSoaD - 14.05.2016, 22:22
Re: help class error / warnings - by Sew_Sumi - 14.05.2016, 22:43
Re: help class error / warnings - by iSoaD - 14.05.2016, 22:54
Re: help class error / warnings - by Sew_Sumi - 14.05.2016, 22:58
Re: help class error / warnings - by iSoaD - 14.05.2016, 23:02
Re: help class error / warnings - by Sew_Sumi - 14.05.2016, 23:07
Re: help class error / warnings - by iSoaD - 14.05.2016, 23:12
Re: help class error / warnings - by Sew_Sumi - 14.05.2016, 23:18
Re: help class error / warnings - by iSoaD - 14.05.2016, 23:22
Re: help class error / warnings - by Sew_Sumi - 14.05.2016, 23:44

Forum Jump:


Users browsing this thread: 5 Guest(s)