Teleport Enum on ZCMD - 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)
+--- Thread: Teleport Enum on ZCMD (
/showthread.php?tid=613023)
Teleport Enum on ZCMD -
KilleRCitY - 23.07.2016
Got me crazy!
can't find any solution.
every time it write me that the command not working "error.. blabla"
and does the /lv command, and the dialog not teleporting me.
code:
http://pastebin.com/7RQ2XXdj
any fix?
Re: Teleport Enum on ZCMD -
Deadpoop - 23.07.2016
Whats the problem using normal teles without enums?
Well show the lines where you get the errors
Re: Teleport Enum on ZCMD -
KilleRCitY - 23.07.2016
Quote:
Originally Posted by Deadpoop
Whats the problem using normal teles without enums?
Well show the lines where you get the errors
|
actually.. more easy to edit any teleport I need. fast and clean.
no any error. just in game..
Re: Teleport Enum on ZCMD -
Deadpoop - 23.07.2016
PHP код:
new Teleport[][Teleports] =
Allready wrong i suggest you to learn how enums and arrays work
array:
https://sampforum.blast.hk/showthread.php?tid=318212
enum:
https://sampforum.blast.hk/showthread.php?tid=318307
after you learn you will would fix it by yourself easily!
Re: Teleport Enum on ZCMD -
KilleRCitY - 23.07.2016
Quote:
Originally Posted by Deadpoop
|
fixed it to:
PHP код:
new Teleport[5][Teleports]
Re: Teleport Enum on ZCMD -
Deadpoop - 23.07.2016
It wont work let me explain you:
PHP код:
enum
{
one, //it block will be 0
two, //1
three = 10, // this will be 10
four, //this will be 11 because three is 10
five[10], //will be 12-22 but if you print as string it will be 12 because it starts from block 12
six //this will be 24
}
same goes to your array
PHP код:
Teleport[5][teleports]
{
Test, //will be [0][4]
Test2 //will be [1][5]
//if you add 3 mire its ok but if you add 4 more you will get error
}