Quote:
Originally Posted by HUYA
Code:
C:\Documents and Settings\CT\Desktop\HUYA TDM\gamemodes\HUYA.pwn(42) : error 017: undefined symbol "string"
C:\Documents and Settings\CT\Desktop\HUYA TDM\gamemodes\HUYA.pwn(42) : error 017: undefined symbol "string"
C:\Documents and Settings\CT\Desktop\HUYA TDM\gamemodes\HUYA.pwn(42) : error 029: invalid expression, assumed zero
C:\Documents and Settings\CT\Desktop\HUYA TDM\gamemodes\HUYA.pwn(42) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
|
Please. If you understand English, you can quite easily understand what the problem is. You're using a variable called "string", yet there's no such variable. Obviously what you need to do, is declaring a variable called string.
Without the formats, the text it 61 letters long, but you must take in consideration that integers can be up to 12 letters long. 12 * 5 = 60, 60 + 61 = 121. You could decrease this value, as vehiclecolor may only be from 0-255 - aka 3 letters. So take away 9 * 2 = 18 letters: 103. This might be the optimal amount of cells used for maximum values.
To count characters in a string, I recommend using a simple tool like Microsoft Word (although it's slow), or an online website like lettercount.com.
___
Reading (at least parts of) the SA:MP Wiki and the pawn-language.pdf is very essential if you don't understand basics like these - I really recommend looking them up.