4 Errors, might be a bug out there
#1

Hello, i made an robbery system, but i get those follwed errors
pawn Код:
C:\Users\Kajinth Thaas\Desktop\samp03e\gamemodes\cgcnrcmd.pwn(22340) : warning 204: symbol is assigned a value that is never used: "string"
C:\Users\Kajinth Thaas\Desktop\samp03e\gamemodes\cgcnrcmd.pwn(23343) : error 014: invalid statement; not in switch
C:\Users\Kajinth Thaas\Desktop\samp03e\gamemodes\cgcnrcmd.pwn(23343) : warning 215: expression has no effect
C:\Users\Kajinth Thaas\Desktop\samp03e\gamemodes\cgcnrcmd.pwn(23343) : error 001: expected token: ";", but found ":"
C:\Users\Kajinth Thaas\Desktop\samp03e\gamemodes\cgcnrcmd.pwn(23343) : error 029: invalid expression, assumed zero
C:\Users\Kajinth Thaas\Desktop\samp03e\gamemodes\cgcnrcmd.pwn(23343) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
And my code for this was

pawn Код:
SetPlayerAttachedObject(playerid,1, 19142, 1, 0.112397, 0.049958, -0.001576, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 );
        SetPlayerAttachedObject(playerid, 2, 1550, 1, -0.008714, -0.188819, -0.026564, 159.138153, 86.558647, 0.000000, 1.005565, 0.984468, 1.014210 ); // CJ_MONEY_BAG -
        SetPlayerAttachedObject(playerid, 3, 18637, 1, 0.000000, -0.026987, 0.152000, 89.427894, 357.510375, 273.945983, 1.000000, 1.000000, 1.000000 ); // PoliceShield1 - Shield on back
        SetPlayerAttachedObject(playerid, 4, 18634, 6, 0.045389, -0.019335, -0.246956, 0.000000, 91.442123, 85.389228, 0.971265, 1.000000, 1.000000 ); // GTASACrowbar1 - Crowbar in hand
        SetPlayerAttachedObject(playerid, 5, 1485, 18, -0.024238, -0.058657, -0.019224, 0.000000, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000 ); // CJ_CIGGY - cuban cigar
        SendClientMessage(playerid, COLOR_RED, "You've Have gave urself rob gear");
23343 is CASE 1:
pawn Код:
case 1:
        {
        ApplyAnimationEx(playerid,"ROB_BANK","CAT_Safe_End",fifa[playerid],O1[playerid],O2[playerid],O3[playerid],O4[playerid],O5[playerid]);
        }
        case 0:
          {
        ApplyAnimationEx(playerid,"ROB_BANK","CAT_Safe_End",fifa[playerid],O1[playerid],O2[playerid],O3[playerid],O4[playerid],O5[playerid]);
        }
        case 2:
        {
        ApplyAnimationEx(playerid,"ROB_BANK","CAT_Safe_Open",fifa[playerid],O1[playerid],O2[playerid],O3[playerid],O4[playerid],O5[playerid]);
        }
        case 3:
         {
        ApplyAnimationEx(playerid,"ROB_BANK","CAT_Safe_Open_O",fifa[playerid],O1[playerid],O2[playerid],O3[playerid],O4[playerid],O5[playerid]);
         }
        case 4:
         {
        ApplyAnimationEx(playerid,"ROB_BANK","CAT_Safe_Rob",fifa[playerid],O1[playerid],O2[playerid],O3[playerid],O4[playerid],O5[playerid]);
         }
        case 5:
        {
        ApplyAnimationEx(playerid,"ROB_BANK","SHP_HandsUp_Scr",fifa[playerid],O1[playerid],O2[playerid],O3[playerid],O4[playerid],O5[playerid]);
        }
        SetTimerEx("MyRemoveFunc", 10 * 1000, false, "i", playerid); //replace X with the amount of seconds before the object should be removed

There maybe will be some wrong with the script i think, but got any ideas? ill mark line 23343
Reply
#2

Have you got switch(...)?

The ... will be something else, but have you got it?
Reply
#3

Getty, you are a Nice Helper, forgot switch
xD my bad, let me see if it works
Reply
#4

Got any ideas what i shall put inside the switch()?
Reply
#5

Show the full command please. Or function, which-ever you use.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)