13.11.2010, 21:03
For some reason I can't figure out how to get this working, could anyone help me?
gives me these errors:
line 38691 is the starting of another pickup which works perfect (without errors)
Thanks in advance.
pawn Код:
// public OnPlayerPickUpPickup(playerid, pickupid)
for(new i = 0; i < 3; i++) // 38674
{
else if (pickupid == (NitroPickup[i]))// 38676
{
if(IsPlayerInAnyVehicle(playerid) == 1)// 38678
{
new model;// 38680
model = GetVehicleModel(GetPlayerVehicleID(playerid));
switch(model) // // 38682
{
case 581,523,462,521,463,522,461,448,468,586,509,481,510,472,473,493,595,484,430,453,452,446,454,590,569,537,538,570,449: return SendClientMessage(playerid, COLOR_RED, "You can't add nos to this vehicle!");
}
AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
SendClientMessage(playerid,COLOR_GREY,"NITROUS OBTAINED");
}
}
}
pawn Код:
C:\Users\Pater\Desktop\UnlimitedStuntWorld.pwn(38674) : error 029: invalid expression, assumed zero
C:\Users\Pater\Desktop\UnlimitedStuntWorld.pwn(38674) : warning 215: expression has no effect
C:\Users\Pater\Desktop\UnlimitedStuntWorld.pwn(38674) : error 001: expected token: ";", but found "if"
C:\Users\Pater\Desktop\UnlimitedStuntWorld.pwn(38691) : error 029: invalid expression, assumed zero
C:\Users\Pater\Desktop\UnlimitedStuntWorld.pwn(38691) : warning 215: expression has no effect
C:\Users\Pater\Desktop\UnlimitedStuntWorld.pwn(38691) : error 001: expected token: ";", but found "if"
line 38691 is the starting of another pickup which works perfect (without errors)
Thanks in advance.