C:\Users\masi\Desktop\LM56.pwn(54547) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\masi\Desktop\LM56.pwn(54547) : error 036: empty statement
C:\Users\masi\Desktop\LM56.pwn(54551) : error 030: compound statement not closed at the end of file (started at line 54543)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
Hier das ganze
public OnPlayerUpdate(playerid)
{
new weapons[13][4], weapid = GetPlayerWeapon(playerid), object;
for(new i = 0; i < 13; i++) GetPlayerWeaponData(playerid, i, weapons[i][0], weapons[i][1]);
if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER || GetPlayerState(playerid) == PLAYER_STATE_DRIVER) return RemovePlayerAttachedObject(playerid, index);
if(weapid == 30 || weapid == 31 || weapid == 34 || weapid == 24 || weapons[5][1] == 0) RemovePlayerAttachedObject(playerid, index);
else {
if(weapons[5][0] == 30) object = 355; if(weapons[5][0] == 31) object = 356; else if(weapons[5][0] == 34) object = 358; else if(weapons[5][0] == 24) object = 24;
#define EachSkin(%0,%1,%2,%3,%4,%5) SetPlayerAttachedObject(playerid, index, object, 1, (%0), (%1), (%2), (%3), (%4), (%5), 1.000000, 1.000000, 1.000000);
switch(GetPlayerSkin(playerid))
{
case 0: EachSkin(0.299511, -0.122143, 0.134006, 0.000000, 158.504928, 0.000000));
{
return 1;
}