07.07.2009, 11:57
Hey there!
I am trying to make a command which only works if you are inside a specific vehicle(572), and I seem to have some issues with it. I am an amateur at scripting so please help
Please try to help me, it will surely be appreciated!
I am trying to make a command which only works if you are inside a specific vehicle(572), and I seem to have some issues with it. I am an amateur at scripting so please help
pawn Код:
#include <a_samp>
forward IsPlayerInsideVehicle(playerid, modelid);
pawn Код:
#endif
#pragma tabsize 0
new IsPlayerInsideVehicle[ MAX_PLAYERS ];
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
}
if (strcmp("/grass start", cmdtext, true, 10) == 0)
{
if IsPlayerInsideVehicle(playerid, 572)=true
{
}
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 211: possibly unintended assignment C:\Users\Bastian\Documents\Samp_server\gamemodes\Test.pwn(431) : error 022: must be lvalue (non-constant) C:\Users\Bastian\Documents\Samp_server\gamemodes\Test.pwn(431 -- 434) : error 028: invalid subscript (not an array or too many subscripts): "true" 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 Errors.