Cmd issue
#1

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
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.
Please try to help me, it will surely be appreciated!
Reply


Messages In This Thread
Cmd issue - by Shinzei_Banzai - 07.07.2009, 11:57
Re: Cmd issue - by refshal - 07.07.2009, 12:05
Re: Cmd issue - by Shinzei_Banzai - 07.07.2009, 12:07
Re: Cmd issue - by Shinzei_Banzai - 07.07.2009, 12:09
Re: Cmd issue - by happyface - 07.07.2009, 12:10
Re: Cmd issue - by Shinzei_Banzai - 07.07.2009, 12:18
Re: Cmd issue - by refshal - 07.07.2009, 12:19
Re: Cmd issue - by happyface - 07.07.2009, 12:21
Re: Cmd issue - by Shinzei_Banzai - 07.07.2009, 12:23
Re: Cmd issue - by happyface - 07.07.2009, 12:52

Forum Jump:


Users browsing this thread: 1 Guest(s)