Argument type mismatch
#1

pawn Код:
PlayerData[i][pPlayTime]++;
            if(PlayerData[i][pPlayTime] >= 3600){
                PlayerData[i][pPlayTime] = 0;

                switch(PlayerData[i][pDonator])
                {
                    if(DXP == false) {
                    case 2: PlayerData[i][pExp]+= 2;
                    case 3: PlayerData[i][pExp]+= 3;
                    case 4: PlayerData[i][pExp]+= 4;
                    case 0, 1: PlayerData[i][pExp]++;
                                     }
                    else {
                    case 2: PlayerData[i][pExp]+= 4;
                    case 3: PlayerData[i][pExp]+= 6;
                    case 4: PlayerData[i][pExp]+= 8;
                    case 0, 1: PlayerData[i][pExp]+= 2;
                         }
                }

                PlayerData[i][pHoursPlayed]++;
            }
Код:
C:\Users\James\Desktop\SA-MP Roleplay Server\gamemodes\ScriptRel.pwn(31714) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\James\Desktop\SA-MP Roleplay Server\gamemodes\ScriptRel.pwn(31714) : error 028: invalid subscript (not an array or too many subscripts): "false"
C:\Users\James\Desktop\SA-MP Roleplay Server\gamemodes\ScriptRel.pwn(31714 -- 31715) : error 001: expected token: "}", but found "case"
C:\Users\James\Desktop\SA-MP Roleplay Server\gamemodes\ScriptRel.pwn(31714 -- 31715) : fatal error 107: too many error messages on one line

Compilation aborted.

Pawn compiler 3.10.3	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
whats up w this
Reply


Messages In This Thread
Argument type mismatch - by Jing_Chan - 27.10.2017, 14:05
Re: Argument type mismatch - by SyS - 27.10.2017, 14:09
Re: Argument type mismatch - by Lucases - 27.10.2017, 14:09
Re: Argument type mismatch - by Jing_Chan - 27.10.2017, 14:14
Re: Argument type mismatch - by Lucases - 27.10.2017, 14:27
Re: Argument type mismatch - by Jing_Chan - 27.10.2017, 15:59

Forum Jump:


Users browsing this thread: 1 Guest(s)