error 008: must be a constant expression; assumed zero
#5

Quote:
Originally Posted by Rufio
View Post
The array size you've defined is too small for cmdtext to fit, cmd's size is 20, therefore cmdtext must be defined as 20 or below. As we don't have a size for cmdtext, you can't tell PAWN that cmd is equal to cmdtext, it just won't work.

You need to use format.

https://sampwiki.blast.hk/wiki/Format

Also, I don't recommend using 20 for CMD, it was just an example to tell you how it works.
Why I forget it?Thank you!
Reply


Messages In This Thread
error 008: must be a constant expression; assumed zero - by 3417512908 - 29.07.2018, 12:29
Re: error 008: must be a constant expression; assumed zero - by Rufio - 29.07.2018, 12:33
Re: error 008: must be a constant expression; assumed zero - by 3417512908 - 29.07.2018, 12:39
Re: error 008: must be a constant expression; assumed zero - by Rufio - 29.07.2018, 12:45
Re: error 008: must be a constant expression; assumed zero - by 3417512908 - 29.07.2018, 12:50

Forum Jump:


Users browsing this thread: 2 Guest(s)