Couple 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Couple Errors (
/showthread.php?tid=184034)
Couple Errors -
sTeAlthy [Brandon Brown] - 17.10.2010
Hello!
I am attempting to script a car ownership system in my script.
I have done well until up to now.
Errors
Код:
C:\Users\Stealthy\Desktop\SAMP\US-RP\gamemodes\rp.pwn(1644) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Stealthy\Desktop\SAMP\US-RP\gamemodes\rp.pwn(2512) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Stealthy\Desktop\SAMP\US-RP\gamemodes\rp.pwn(3330) : warning 213: tag mismatch
C:\Users\Stealthy\Desktop\SAMP\US-RP\gamemodes\rp.pwn(3330) : error 001: expected token: ")", but found "["
C:\Users\Stealthy\Desktop\SAMP\US-RP\gamemodes\rp.pwn(3330) : error 029: invalid expression, assumed zero
C:\Users\Stealthy\Desktop\SAMP\US-RP\gamemodes\rp.pwn(3330) : warning 215: expression has no effect
C:\Users\Stealthy\Desktop\SAMP\US-RP\gamemodes\rp.pwn(3330) : error 001: expected token: ";", but found "]"
C:\Users\Stealthy\Desktop\SAMP\US-RP\gamemodes\rp.pwn(3330) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
6 Errors.
Lines 3330
Код:
if(IsAnOwnableCar(vehicleid) && CarInfo[vehicleid][cLock] == 1 && CarInfo[vehicleid][cOwned] == 1)
{
if(PlayerInfo[playerid][pAdmin] >= 6 && pAOnDuty[playerid] == 1))
else
{
new Float:cx, Float:cy, Float:cz;
GetPlayerPos(playerid, cx, cy, cz);
SetPlayerPos(playerid, cx, cy, cz);
}
}
Line 2512
Код:
public IsAtPDGasStation(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(8.0,playerid,1585.2357,-1682.6119,5.2500) || PlayerToPoint(8.0,playerid,1381.8567,459.1273,20.3452))
{
return 1;
}
}
return 0;
}
Lines 1644
Код:
public DMVCheck()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if (PlayerToPoint(2.0, i, 362.2238,173.6231,1008.3828))
{
if(DMVName[i] == 0) { DMVMessage[i] = 0; }
ElevatorMessage[i] = 0;
}
}
}
return 1;
}