07.07.2009, 12:09
Okay I edited something and I ended up with this:
pawn Код:
}
if (strcmp("/grass start", cmdtext, true, 10) == 0)
{
if IsPlayerInsideVehicle(playerid, 572)*then
{
}
SetPlayerCheckpoint(playerid, 779.9626, -1259.1793, 13.5719, 3.0);
return 1;
}
else
{
SendClientMessage(playerid,0xFFFFFFAA, "You are not driving a lawnmower");
return 1;
}
return 0;
}
Код:
C:\Users\Bastian\Documents\Samp_server\gamemodes\Test.pwn(431) : warning 209: function "IsPlayerInsideVehicle" should return a value C:\Users\Bastian\Documents\Samp_server\gamemodes\Test.pwn(445) : warning 225: unreachable code Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings.