Teleport Enum on ZCMD
#1

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?
Reply
#2

Whats the problem using normal teles without enums?
Well show the lines where you get the errors
Reply
#3

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..
Reply
#4

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!
Reply
#5

Quote:
Originally Posted by Deadpoop
Посмотреть сообщение
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!
fixed it to:
PHP код:
new Teleport[5][Teleports
Reply
#6

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

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)