Error
#1

pawn Код:
error 002: only a single statement (or expression) can follow each "case"
error 002: only a single statement (or expression) can follow each "case"

pawn Код:
SetPlayerScore(playerid, GetPlayerScore(playerid) +1);
                    SetPVarInt(playerid, "Raping", 0);
                    RapeAgain[playerid] = SetTimerEx("Rape", 1000*40, 0, "i", playerid);
                }
                else return SendClientMessage(playerid, COLOR_RED, "Nobody Close Enough To Rape.");
        }



                    SetPlayerScore(playerid, GetPlayerScore(playerid) +1);
                    SetPVarInt(playerid, "Raping", 0);
                    RapeAgain[playerid] = SetTimerEx("Rape", 1000*40, 0, "i", playerid);
                }
                else
                {
                    format(error, sizeof error, "%s (%d) Is Not Close Enough.", PlayerName(nPlayer), pID);
                    SendClientMessage(playerid, COLOR_RED, error);
                    return 1;
                }
(there is more code (this is the error part)
Reply


Messages In This Thread
Error - by Ananisiki - 17.04.2014, 08:49
Re : Error - by S4t3K - 17.04.2014, 09:35

Forum Jump:


Users browsing this thread: 1 Guest(s)