17.10.2010, 19:22
Hello!
I am attempting to script a car ownership system in my script.
I have done well until up to now.
Errors
Lines 3330
Line 2512
Lines 1644
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.
Код:
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); } }
Код:
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; }
Код:
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; }