29.12.2011, 12:24
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
if(!ispassenger)
{
new skin = GetPlayerSkin(playerid);
switch(GetVehicleModel(vehicleid))
{
case 525: // first vehicle id
{
if(skin != 50) // first skin id
ClearAnimations(playerid);
}
case 596: // second vehicle id
{
if(skin != 283) // second skin id
ClearAnimations(playerid);
}
case 596: // third vehicle id
{
if(skin != 288) // third skin id
ClearAnimations(playerid);
}
case 596: // first vehicle id
{
if(skin != 281) // first skin id
ClearAnimations(playerid);
}
case 596: // second vehicle id
{
if(skin != 282) // second skin id
ClearAnimations(playerid);
}
case 597: // third vehicle id
{
if(skin != 288) // third skin id
ClearAnimations(playerid);
}
case 597: // first vehicle id
{
if(skin != 283) // first skin id
ClearAnimations(playerid);
}
case 597: // second vehicle id
{
if(skin != 282) // second skin id
ClearAnimations(playerid);
}
case 597: // third vehicle id
{
if(skin != 281) // third skin id
ClearAnimations(playerid);
}
case 598: // first vehicle id
{
if(skin != 283) // first skin id
ClearAnimations(playerid);
}
case 598: // second vehicle id
{
if(skin != 288) // second skin id
ClearAnimations(playerid);
}
case 598: // third vehicle id
{
if(skin != 281) // third skin id
ClearAnimations(playerid);
}
case 598: // third vehicle id
{
if(skin != 282) // third skin id
ClearAnimations(playerid);
}
case 490: // third vehicle id
{
if(skin != 281) // third skin id
ClearAnimations(playerid);
}
case 490: // third vehicle id
{
if(skin != 283) // third skin id
ClearAnimations(playerid);
} case 490: // third vehicle id
{
if(skin != 282) // third skin id
ClearAnimations(playerid);
}
case 490: // third vehicle id
{
if(skin != 288) // third skin id
ClearAnimations(playerid);
}
case 427: // third vehicle id
{
if(skin != 283) // third skin id
ClearAnimations(playerid);
}
case 427: // third vehicle id
{
if(skin != 281) // third skin id
ClearAnimations(playerid);
}
case 427: // third vehicle id
{
if(skin != 282) // third skin id
ClearAnimations(playerid);
}
}
}
C:\Users\Luca\Desktop\base.pwn(2345) : error 040: duplicate "case" label (value 596)
C:\Users\Luca\Desktop\base.pwn(2350) : error 040: duplicate "case" label (value 596)
C:\Users\Luca\Desktop\base.pwn(2360) : error 040: duplicate "case" label (value 597)
C:\Users\Luca\Desktop\base.pwn(2365) : error 040: duplicate "case" label (value 597)
C:\Users\Luca\Desktop\base.pwn(2370) : error 040: duplicate "case" label (value 597)
C:\Users\Luca\Desktop\base.pwn(2380) : error 040: duplicate "case" label (value 59
C:\Users\Luca\Desktop\base.pwn(2385) : error 040: duplicate "case" label (value 59
C:\Users\Luca\Desktop\base.pwn(2390) : error 040: duplicate "case" label (value 59
C:\Users\Luca\Desktop\base.pwn(2400) : error 040: duplicate "case" label (value 490)
C:\Users\Luca\Desktop\base.pwn(2404) : error 040: duplicate "case" label (value 490)
C:\Users\Luca\Desktop\base.pwn(2409) : error 040: duplicate "case" label (value 490)
C:\Users\Luca\Desktop\base.pwn(2419) : error 040: duplicate "case" label (value 427)
C:\Users\Luca\Desktop\base.pwn(2424) : error 040: duplicate "case" label (value 427)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
14 Errors.
][/QUOTE]
+REP!