HELP 4 ERRORS - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: HELP 4 ERRORS (
/showthread.php?tid=557978)
HELP 4 ERRORS -
Mijata - 15.01.2015
Код:
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.
Re: HELP 4 ERRORS -
xVIP3Rx - 15.01.2015
Show us the "tim1" stock
Re: HELP 4 ERRORS -
Mijata - 15.01.2015
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;
}
Re: HELP 4 ERRORS -
xVIP3Rx - 15.01.2015
If you don't have it then that's the issue, you're checking for it's value,
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.
Re: HELP 4 ERRORS -
Mijata - 15.01.2015
what i must to add