[Include] [INC] CPS - CheckPoint Streamer by DragSta
#1

CPS V0.3
by DragSta
_________________________________________________

What is it?
CPS is a simple, easy to use, and efficient checkpoint streamer.

Need some help?
Check out This Wiki Entry made by Mike.

What can I do with it?
The native checkpoint limit in SA-MP is one, meaning only one can be displayed at a time. This streamer (like all the other streamers) will only display the checkpoint closest to the player.

How do I use it?
It is very simple:
1. Download the .inc file from one of the links below
2. Put the .inc file in your 'includes' directory.
3. Include it into your GM/FS with '#include <cps>'
4. Make the following additions to your script:
1. Add 'StartSystem();' to OnGameModeInit/OnFilterScriptInit.
2. Add 'ClearVars(playerid);' to OnPlayerConnect.
3. Add 'SyncCheckpoints(playerid);' to OnPlayerConnect.
4. Add 'CheckpointCheck(playerid);' to the TOP of OnPlayerEnterCheckpoint.
5. Add the following callback to your script:
pawn Code:
public OnPlayerEnterStreamedCheckpoint(playerid, streamid)
{
  return 1;
}
5. You can now use the following functions:
pawn Code:
CreateCheckpoint(playerid, Float:cpX, Float:cpY, Float:cpZ, Float:cpS, Float:viewdiss); //Will create a streamed checkpoint for the specified player. Use -1 as playerid for all players
DestroyCheckpoint(cPid); //Destroys a checkpoint.
TogglePlayerCheckpoint(playerid, cpid, bool:toggle); //Toggles a checkpoint on/off for a player.
Download!
http://sampnet.co.uk/files/cpsinc.zip

Mirrors not accepted.

Everything is quite self explanitory, but if theres something you cant figure out, dont hesitate to ask
If you find any bugs or have any suggestions, please post

Thanks,
DragSta
Reply
#2

ooh, nice work dragsta
Reply
#3

wow
cool dragsta,
i was about to asking for this

:P
Reply
#4

ty Dragsta
Reply
#5

New version out.
Cueball mentioned this in IRC and I decided he was right so I put it in.
CreateCheckpoint now has a playerid parameter. This means that the checkpoint will only be created for the playerid specified. To create a checkpoint for all players, use -1 as the playerid.

Also, a new function has been added: TogglePlayerCheckpoint(playerid, cpid, bool:toggle)
First post edited, Download links are the same.
Reply
#6

C:\Documents and Settings\Walter\Escritorio\The.Sims.2.Nightlife.PC .2CDs.Multilenguaje.www.GameDonkey.net\SampS2.2R3\ pawno\include\cps.inc(129) : warning 208: function with tag result used before definition, forcing reparse
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.
i get this warning xD what does it means?
Reply
#7

Quote:
Originally Posted by almighty
C:\Documents and Settings\Walter\Escritorio\The.Sims.2.Nightlife.PC .2CDs.Multilenguaje.www.GameDonkey.net\SampS2.2R3\ pawno\include\cps.inc(129) : warning 208: function with tag result used before definition, forcing reparse
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.
i get this warning xD what does it means?
i'm having exactly the same problem
Reply
#8

But does the streamer works fine??
Reply
#9

Great Work
Reply
#10

Question: How do i know what checkpoint like, what the CPId is?

EDIT: Can someone make an example FS with MORE THAN ONE checkpoint please? Im stuck.

All i bloody get is:

Code:
C:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\cps.inc(129) : warning 208: function with tag result used before definition, forcing reparse
C:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\cps.inc(129) : warning 219: local variable "x2" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\cps.inc(129) : warning 219: local variable "y2" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\cps.inc(129) : warning 219: local variable "z2" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6420) : warning 219: local variable "X" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6420) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6420) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6422) : error 035: argument type mismatch (argument 2)
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6425) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6425) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6425) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6420) : warning 203: symbol is never used: "Z"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6420) : warning 203: symbol is never used: "Y"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6420) : warning 203: symbol is never used: "X"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6437) : warning 219: local variable "X" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6437) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6437) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6439) : error 035: argument type mismatch (argument 2)
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6442) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6442) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6442) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6437) : warning 203: symbol is never used: "Z"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6437) : warning 203: symbol is never used: "Y"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6437) : warning 203: symbol is never used: "X"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6479) : warning 219: local variable "X" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6479) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6479) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6481) : error 035: argument type mismatch (argument 2)
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6484) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6484) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6484) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6479) : warning 203: symbol is never used: "Z"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6479) : warning 203: symbol is never used: "Y"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6479) : warning 203: symbol is never used: "X"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6496) : warning 219: local variable "X" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6496) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6496) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6498) : error 035: argument type mismatch (argument 2)
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6501) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6501) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6501) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6496) : warning 203: symbol is never used: "Z"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6496) : warning 203: symbol is never used: "Y"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6496) : warning 203: symbol is never used: "X"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6513) : warning 219: local variable "X" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6513) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6513) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6515) : error 035: argument type mismatch (argument 2)
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6518) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6518) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6518) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6513) : warning 203: symbol is never used: "Z"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6513) : warning 203: symbol is never used: "Y"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6513) : warning 203: symbol is never used: "X"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6530) : warning 219: local variable "X" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6530) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6530) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6532) : error 035: argument type mismatch (argument 2)
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6535) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6535) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6535) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6530) : warning 203: symbol is never used: "Z"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6530) : warning 203: symbol is never used: "Y"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6530) : warning 203: symbol is never used: "X"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6547) : warning 219: local variable "X" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6547) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6547) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6549) : error 035: argument type mismatch (argument 2)
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6552) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6552) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6552) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6547) : warning 203: symbol is never used: "Z"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6547) : warning 203: symbol is never used: "Y"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6547) : warning 203: symbol is never used: "X"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7236) : warning 219: local variable "X" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7236) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7236) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7238) : error 035: argument type mismatch (argument 2)
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7241) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7241) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7241) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7236) : warning 203: symbol is never used: "Z"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7236) : warning 203: symbol is never used: "Y"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7236) : warning 203: symbol is never used: "X"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7252) : warning 219: local variable "X" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7252) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7252) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7254) : error 035: argument type mismatch (argument 2)
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7257) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7257) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7257) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7252) : warning 203: symbol is never used: "Z"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7252) : warning 203: symbol is never used: "Y"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7252) : warning 203: symbol is never used: "X"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7267) : warning 219: local variable "X" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7267) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7267) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7268) : error 035: argument type mismatch (argument 2)
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7270) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7270) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7270) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7267) : warning 203: symbol is never used: "Z"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7267) : warning 203: symbol is never used: "Y"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7267) : warning 203: symbol is never used: "X"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


10 Errors.
Reply
#11

Quote:
Originally Posted by Mikep
Question: How do i know what checkpoint like, what the CPId is?

EDIT: Can someone make an example FS with MORE THAN ONE checkpoint please? Im stuck.

All i bloody get is:

Код:
C:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\cps.inc(129) : warning 208: function with tag result used before definition, forcing reparse
C:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\cps.inc(129) : warning 219: local variable "x2" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\cps.inc(129) : warning 219: local variable "y2" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\cps.inc(129) : warning 219: local variable "z2" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6420) : warning 219: local variable "X" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6420) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6420) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6422) : error 035: argument type mismatch (argument 2)
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6425) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6425) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6425) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6420) : warning 203: symbol is never used: "Z"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6420) : warning 203: symbol is never used: "Y"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6420) : warning 203: symbol is never used: "X"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6437) : warning 219: local variable "X" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6437) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6437) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6439) : error 035: argument type mismatch (argument 2)
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6442) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6442) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6442) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6437) : warning 203: symbol is never used: "Z"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6437) : warning 203: symbol is never used: "Y"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6437) : warning 203: symbol is never used: "X"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6479) : warning 219: local variable "X" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6479) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6479) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6481) : error 035: argument type mismatch (argument 2)
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6484) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6484) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6484) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6479) : warning 203: symbol is never used: "Z"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6479) : warning 203: symbol is never used: "Y"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6479) : warning 203: symbol is never used: "X"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6496) : warning 219: local variable "X" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6496) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6496) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6498) : error 035: argument type mismatch (argument 2)
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6501) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6501) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6501) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6496) : warning 203: symbol is never used: "Z"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6496) : warning 203: symbol is never used: "Y"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6496) : warning 203: symbol is never used: "X"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6513) : warning 219: local variable "X" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6513) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6513) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6515) : error 035: argument type mismatch (argument 2)
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6518) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6518) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6518) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6513) : warning 203: symbol is never used: "Z"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6513) : warning 203: symbol is never used: "Y"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6513) : warning 203: symbol is never used: "X"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6530) : warning 219: local variable "X" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6530) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6530) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6532) : error 035: argument type mismatch (argument 2)
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6535) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6535) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6535) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6530) : warning 203: symbol is never used: "Z"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6530) : warning 203: symbol is never used: "Y"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6530) : warning 203: symbol is never used: "X"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6547) : warning 219: local variable "X" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6547) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6547) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6549) : error 035: argument type mismatch (argument 2)
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6552) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6552) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6552) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6547) : warning 203: symbol is never used: "Z"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6547) : warning 203: symbol is never used: "Y"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(6547) : warning 203: symbol is never used: "X"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7236) : warning 219: local variable "X" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7236) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7236) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7238) : error 035: argument type mismatch (argument 2)
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7241) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7241) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7241) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7236) : warning 203: symbol is never used: "Z"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7236) : warning 203: symbol is never used: "Y"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7236) : warning 203: symbol is never used: "X"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7252) : warning 219: local variable "X" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7252) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7252) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7254) : error 035: argument type mismatch (argument 2)
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7257) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7257) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7257) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7252) : warning 203: symbol is never used: "Z"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7252) : warning 203: symbol is never used: "Y"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7252) : warning 203: symbol is never used: "X"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7267) : warning 219: local variable "X" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7267) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7267) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7268) : error 035: argument type mismatch (argument 2)
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7270) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7270) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7270) : warning 213: tag mismatch
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7267) : warning 203: symbol is never used: "Z"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7267) : warning 203: symbol is never used: "Y"
C:\DOCUME~1\ADMINI~1\Desktop\FRSDM.pwn(7267) : warning 203: symbol is never used: "X"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


10 Errors.
The CreateCheckpoint function returns the CPID, so using something like:
pawn Код:
new hello = CreateCheckpoint(...)
will do the job just fine.

About your errors though, could you share the code on the lines with the errors?
Reply
#12

ah i forgot about new blablalb = blablabla

Reply
#13

my problem..
Код:
C:\Documents and Settings\Livio Nunes\Desktop\SERVIDORLV\pawno\include\cps.inc(129) : warning 208: function with tag result used before definition, forcing reparse
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
the proble is in a line with a vehicle name list..
Reply
#14

An updated fixed version will be released soon.
Reply
#15

Quote:
Originally Posted by DragSta
An updated fixed version will be released soon.
ok dragsta bro
Reply
#16

First Post Updated!

Changelog (14th September 2008, 01:48 AM):
- Added the function 'SyncCheckpoints' that MUST be put in OnPlayerConnect (under ClearVars). This function syncs global checkpoints for players that had joined after the checkpoint was created.
Reply
#17

Really great work, man!
Reply
#18

Quote:
Originally Posted by GTAIV2008
Really great work, man!
Thankyou.
Reply
#19

if you see never blabla symbol go to the top of that pwn and type
Код:
new [symbol name that is never used]
Reply
#20

Quote:
Originally Posted by DIM_STAR
if you see never blabla symbol go to the top of that pwn and type
Код:
new [symbol name that is never used]
What does that have to do with CPS?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)