[Help] How to Fix This??
#1

I got an error in my script and can help me to fix it??

MY SCRIPT
Код:
//-----------[barrel trap]----------------//
	if (newkeys == KEY_FIRE)
	{
		if(IsPlayerInAnyVehicle(playerid))
		{
			new
				Float:x,
				Float:y,
				Float:z;
			{
		  	  if(GetPlayerMoney(playerid) >= 2000)
 	 			{
            		GetPlayerPos(playerid, x, y, z);
					CreateObject(1225,x,y,z, 0.00, 0.00, 0.00);
					GivePlayerMoney(playerid, -2000);
				}
   				else
				{
					SendClientMessage(playerid,purple,"You Dont Have Enough Money");
				}
			}
			else
			{
			SendClientMessage(playerid,purple,"You Must Be in Vehicle To Drop The Trap!");
			}
		}
		return 1;
	}
ERROR
Код:
C:\DOCUME~1\xp\Desktop\LZGSMI~1\GAMEMO~1\GM1.pwn(852) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
Please Help me
Reply


Messages In This Thread
[Help] How to Fix This?? - by dickyodie - 11.01.2012, 07:36
Re: [Help] How to Fix This?? - by JamesC - 11.01.2012, 07:38
Re: [Help] How to Fix This?? - by dickyodie - 11.01.2012, 07:40
Re: [Help] How to Fix This?? - by T0pAz - 11.01.2012, 07:41
Re: [Help] How to Fix This?? - by dickyodie - 11.01.2012, 08:32
Re: [Help] How to Fix This?? - by T0pAz - 11.01.2012, 09:03
Re: [Help] How to Fix This?? - by Joe_ - 11.01.2012, 09:27

Forum Jump:


Users browsing this thread: 4 Guest(s)