Reserved vehicles - Names -
CirCuz™ - 16.01.2013
Hello!
[[ Thanks to Killa[DGZ] for the reserved vehicle system btw!

]]
I won't completely release it here, but I'ma release what's necessary.
Alright,
I have these names in my script for the reserved vehicles in the server:
Код:
new Kudoz;
new CirCuz;
new Saboor;
new xVeilSideZ;
new iReeKz;
but when I want to add a clantag like;
I get errors! here;
Код:
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(132) : error 017: undefined symbol "Dz"
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(132) : error 009: invalid array size (negative, zero or out of bounds)
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(414) : error 046: unknown array size (variable "CirCuz")
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(415) : error 035: argument type mismatch (argument 1)
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(416) : error 035: argument type mismatch (argument 1)
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(417) : error 035: argument type mismatch (argument 1)
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(418) : error 035: argument type mismatch (argument 1)
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(419) : error 035: argument type mismatch (argument 1)
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(420) : error 035: argument type mismatch (argument 1)
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(421) : error 035: argument type mismatch (argument 1)
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(1211) : error 033: array must be indexed (variable "CirCuz")
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(1213) : error 035: argument type mismatch (argument 1)
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(1214) : error 035: argument type mismatch (argument 1)
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(1215) : error 035: argument type mismatch (argument 1)
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(1216) : error 035: argument type mismatch (argument 1)
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(1217) : error 035: argument type mismatch (argument 1)
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(1581) : error 035: argument type mismatch (argument 1)
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(1660) : error 033: array must be indexed (variable "CirCuz")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
18 Errors.
When I remove [Dz] , I have no errors.. how can I add clantags then?? ;o
Re: Reserved vehicles - Names -
Threshold - 16.01.2013
That's not a very good way to do it, but if clan tags are the case, you're going to have to use something else instead, like:
new CirCuz[24] = "CirCuz[Dz]";
Then you can still use the variable 'CirCuz', the only downside is, you can't use the variable CirCuz without a clan tag.
Re: Reserved vehicles - Names -
CirCuz™ - 16.01.2013
Код:
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(414) : error 033: array must be indexed (variable "CirCuz")
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(415) : error 035: argument type mismatch (argument 1)
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(416) : error 035: argument type mismatch (argument 1)
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(417) : error 035: argument type mismatch (argument 1)
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(418) : error 035: argument type mismatch (argument 1)
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(419) : error 035: argument type mismatch (argument 1)
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(420) : error 035: argument type mismatch (argument 1)
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(421) : error 035: argument type mismatch (argument 1)
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(1211) : error 033: array must be indexed (variable "CirCuz")
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(1213) : error 035: argument type mismatch (argument 1)
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(1214) : error 035: argument type mismatch (argument 1)
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(1215) : error 035: argument type mismatch (argument 1)
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(1216) : error 035: argument type mismatch (argument 1)
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(1217) : error 035: argument type mismatch (argument 1)
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(1581) : error 035: argument type mismatch (argument 1)
C:\Users\daniel\Desktop\DriftUnitZ\gamemodes\drift.pwn(1660) : error 033: array must be indexed (variable "CirCuz")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
16 Errors.
That's confusing D:
Re: Reserved vehicles - Names -
Threshold - 16.01.2013
Oh how stupid of me... I'm not sure why I made it into a string, in this case, no you can't add clan tags by creating a new variable. The best thing to do would be to make an enum, and then make it so it's usable with vehicle ids.
Re: Reserved vehicles - Names -
Vince - 16.01.2013
Two different variables can't have the same name! Common sense? No?
Re: Reserved vehicles - Names -
Kudoz - 03.02.2013
Yea, same.. how can we add clantags to the name? Help please