HELP 4 ERRORS
#1

Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{

    new Float:Poz[3]; GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
 ---------------------------------------------------line 5660----------------  if(tim1(vehicleid))
		{
			if(pInfor[playerid][Clan] != 1)
			{
				SetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
				GameTextForPlayer(playerid, "~r~Be special squad ~n~to drive this car", 2500, 5);
			}
		}
  	if(tim1(vehicleid))
       	{
        if(pInfor[playerid][Clan] != 2)
        {
        	{
		         SetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
		         GameTextForPlayer(playerid, "~r~Be special killer ~n~to drive this car", 2500, 5);
           	}
       	}
   return 1;
}
}
Код:
D:\Documents and Settings\mijata_2.XPSP3-WBB\Desktop\CvTReal.pwn(5660) : error 012: invalid function call, not a valid address
D:\Documents and Settings\mijata_2.XPSP3-WBB\Desktop\CvTReal.pwn(5660) : warning 215: expression has no effect
D:\Documents and Settings\mijata_2.XPSP3-WBB\Desktop\CvTReal.pwn(5660) : error 001: expected token: ";", but found ")"
D:\Documents and Settings\mijata_2.XPSP3-WBB\Desktop\CvTReal.pwn(5660) : error 029: invalid expression, assumed zero
D:\Documents and Settings\mijata_2.XPSP3-WBB\Desktop\CvTReal.pwn(5660) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#2

Show us the "tim1" stock
Reply
#3

i don't have i only have it

Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{

    new Float:Poz[3]; GetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
    if(tim1(vehicleid))
		{
			if(pInfor[playerid][Clan] != 1)
			{
				SetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
				GameTextForPlayer(playerid, "~r~Be special squad ~n~to drive this car", 2500, 5);
			}
		}
  	if(tim1(vehicleid))
       	{
        if(pInfor[playerid][Clan] != 2)
        {
        	{
		         SetPlayerPos(playerid, Poz[0], Poz[1], Poz[2]);
		         GameTextForPlayer(playerid, "~r~Be special killer ~n~to drive this car", 2500, 5);
           	}
       	}
   return 1;
}
}

stock tim2(carid)
{
	for(new i = 0; i < sizeof(tim2); i++)
	{
	if(carid == tim2[i])    return 1;
	}
	return 0;
}
Reply
#4

If you don't have it then that's the issue, you're checking for it's value,
pawn Код:
if(tim1(vehicleid))
Look for it.

Quote:
Originally Posted by Mijata
Посмотреть сообщение
what i must to add
I don't know, it's a stock, look for it where you got the script from if you didn't type it.
Reply
#5

what i must to add
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)