Jump to content

PAWNO eroare 002


Styled_
 Share

Recommended Posts

CODE:

playerVariables[playerid][pWeapons][0] = 0;

playerVariables[playerid][pWeapons][1] = 0;

playerVariables[playerid][pWeapons][2] = 0;

playerVariables[playerid][pWeapons][3] = 0;

playerVariables[playerid][pWeapons][4] = 0;

playerVariables[playerid][pWeapons][5] = 0;

playerVariables[playerid][pWeapons][6] = 0;

playerVariables[playerid][pWeapons][7] = 0;

playerVariables[playerid][pWeapons][8] = 0;

playerVariables[playerid][pWeapons][9] = 0;

playerVariables[playerid][pWeapons][10] = 0;

playerVariables[playerid][pWeapons][11] = 0;

playerVariables[playerid][pWeapons][12] = 0;

 

SetPlayerToTeamColor(playerid);

 

SetPlayerFightingStyle(playerid, playerVariables[playerid][pFightStyle]);

 

HUndercover[playerid] = 0;

if(playerVariables[playerid][pPrisonTime] >= 1)

{

switch(playerVariables[playerid][pPrisonID])

{

case 2:

{

ResetPlayerWeapons(playerid);

SetPlayerInterior(playerid, 10);

SetPlayerVirtualWorld(playerid, 0);

SetPlayerPos(playerid, 223.15, 110.0, 999.02);

}

case 3:

{

ResetPlayerWeapons(playerid);

SetPlayerInterior(playerid, 6);

new spawn = random(sizeof(JailSpawns));

SetPlayerPos(playerid, JailSpawns[spawn][0], JailSpawns[spawn][1], JailSpawns[spawn][2]);

SetPlayerFacingAngle(playerid, 0);

}

 

SetTimerEx("ScadeWanted", 12000, true, "1", playerid);

SendClientMessage(playerid, -1, "Ai pierdut un Wanted Point, mai ai inca %d");

}

return 1;

 

}

 

 

[ CE E MAI SUS DE ACEST COD NU CRED CA, CONTEAZA ]

 

D:\Users\DeyuFTW\Desktop\I-T RPG\gamemodes\GAMEMODe.pwn(13036) : error 002: only a single statement (or expression) can follow each "case"

D:\Users\DeyuFTW\Desktop\I-T RPG\gamemodes\GAMEMODe.pwn(13036) : warning 215: expression has no effect

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

 

 

1 Error.

CODE:

playerVariables[playerid][pWeapons][0] = 0;

playerVariables[playerid][pWeapons][1] = 0;

playerVariables[playerid][pWeapons][2] = 0;

playerVariables[playerid][pWeapons][3] = 0;

playerVariables[playerid][pWeapons][4] = 0;

playerVariables[playerid][pWeapons][5] = 0;

playerVariables[playerid][pWeapons][6] = 0;

playerVariables[playerid][pWeapons][7] = 0;

playerVariables[playerid][pWeapons][8] = 0;

playerVariables[playerid][pWeapons][9] = 0;

playerVariables[playerid][pWeapons][10] = 0;

playerVariables[playerid][pWeapons][11] = 0;

playerVariables[playerid][pWeapons][12] = 0;

SetPlayerToTeamColor(playerid);

SetPlayerFightingStyle(playerid, playerVariables[playerid][pFightStyle]);

HUndercover[playerid] = 0;

if(playerVariables[playerid][pPrisonTime] >= 1)

{

switch(playerVariables[playerid][pPrisonID])

{

case 2:

{

ResetPlayerWeapons(playerid);

SetPlayerInterior(playerid, 10);

SetPlayerVirtualWorld(playerid, 0);

SetPlayerPos(playerid, 223.15, 110.0, 999.02);

}

case 3:

{

ResetPlayerWeapons(playerid);

SetPlayerInterior(playerid, 6);

new spawn = random(sizeof(JailSpawns));

SetPlayerPos(playerid, JailSpawns[spawn][0], JailSpawns[spawn][1], JailSpawns[spawn][2]);

SetPlayerFacingAngle(playerid, 0);

}

SetTimerEx("ScadeWanted", 12000, true, "1", playerid);

SendClientMessage(playerid, -1, "Ai pierdut un Wanted Point, mai ai inca %d");

}

return 1;

}

[ CE E MAI SUS DE ACEST COD NU CRED CA, CONTEAZA ]

D:\Users\DeyuFTW\Desktop\I-T RPG\gamemodes\GAMEMODe.pwn(13036) : error 002: only a single statement (or expression) can follow each "case"

D:\Users\DeyuFTW\Desktop\I-T RPG\gamemodes\GAMEMODe.pwn(13036) : warning 215: expression has no effect

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

 

ERORILE INCEP DE LA ResetPlayerWeapons(playerid);

SetPlayerInterior(playerid, 6);

new spawn = random(sizeof(JailSpawns));

SetPlayerPos(playerid, JailSpawns[spawn][0], JailSpawns[spawn][1], JailSpawns[spawn][2]);

SetPlayerFacingAngle(playerid, 0);

}

 

SetTimerEx("ScadeWanted", 12000, true, "1", playerid);

SendClientMessage(playerid, -1, "Ai pierdut un Wanted Point, mai ai inca %d");

}

return 1;

 

}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.