Checkpoint help [+rep..REALLY need help]
#10

Quote:
Originally Posted by chrism11
Посмотреть сообщение
May i explain...

public OnPlayerEnterDynamicCP(playerid,checkpointid)
{
if(checkpointid == job)
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 403 && 515 && 514)

this means that your vehicle model HAS to be 403 AND 515 AND 514.

Change to

public OnPlayerEnterDynamicCP(playerid,checkpointid)
{
if(checkpointid == job)
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 403 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 515 || GetVehicleModel(GetPlayerVehicleID(playerid)) == 514)
{
already did that. same problem

Quote:
Originally Posted by Kar
Посмотреть сообщение
Fixed a few bugs and improved the script and indentation

http://pastebin.com/etVjeywp

- Fixed the vehicleid script bug
- Fixed the destroying and creating of checkpoints
- Made checkpoints per player
I got a bunch of errors :S

pawn Код:
C:\Users\-\Desktop\fs\Jobs.pwn(12) : error 017: undefined symbol "playerid"
C:\Users\-\Desktop\fs\Jobs.pwn(27) : error 035: argument type mismatch (argument 1)
C:\Users\-\Desktop\fs\Jobs.pwn(29) : error 035: argument type mismatch (argument 1)
C:\Users\-\Desktop\fs\Jobs.pwn(57) : error 033: array must be indexed (variable "job")
C:\Users\-\Desktop\fs\Jobs.pwn(61) : error 033: array must be indexed (variable "job")
C:\Users\-\Desktop\fs\Jobs.pwn(65) : error 033: array must be indexed (variable "job")
C:\Users\-\Desktop\fs\Jobs.pwn(69) : error 033: array must be indexed (variable "job")
C:\Users\-\Desktop\fs\Jobs.pwn(73) : error 033: array must be indexed (variable "job")
C:\Users\-\Desktop\fs\Jobs.pwn(77) : error 033: array must be indexed (variable "job")
C:\Users\-\Desktop\fs\Jobs.pwn(81) : error 033: array must be indexed (variable "job")
C:\Users\-\Desktop\fs\Jobs.pwn(85) : error 033: array must be indexed (variable "job")
C:\Users\-\Desktop\fs\Jobs.pwn(89) : error 033: array must be indexed (variable "job")
C:\Users\-\Desktop\fs\Jobs.pwn(93) : error 033: array must be indexed (variable "job")
C:\Users\-\Desktop\fs\Jobs.pwn(97) : error 033: array must be indexed (variable "job")
C:\Users\-\Desktop\fs\Jobs.pwn(101) : error 033: array must be indexed (variable "job")
C:\Users\-\Desktop\fs\Jobs.pwn(105) : error 033: array must be indexed (variable "job")
C:\Users\-\Desktop\fs\Jobs.pwn(109) : error 033: array must be indexed (variable "job")
C:\Users\-\Desktop\fs\Jobs.pwn(113) : error 033: array must be indexed (variable "job")
C:\Users\-\Desktop\fs\Jobs.pwn(117) : error 033: array must be indexed (variable "job")
C:\Users\-\Desktop\fs\Jobs.pwn(135) : error 033: array must be indexed (variable "job")
C:\Users\-\Desktop\fs\Jobs.pwn(143) : error 035: argument type mismatch (argument 1)
C:\Users\-\Desktop\fs\Jobs.pwn(143) : error 035: argument type mismatch (argument 1)
C:\Users\-\Desktop\fs\Jobs.pwn(150) : error 035: argument type mismatch (argument 1)
C:\Users\-\Desktop\fs\Jobs.pwn(150) : error 035: argument type mismatch (argument 1)
C:\Users\-\Desktop\fs\Jobs.pwn(156) : error 033: array must be indexed (variable "job")
C:\Users\-\Desktop\fs\Jobs.pwn(160) : error 033: array must be indexed (variable "job")

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)