Kills / Deaths Ratio.
#9

Quote:
Originally Posted by HUYA
View Post
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.

pawn Code:
new
    string[ 103 ]
;
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.
Reply


Messages In This Thread
Kills / Deaths Ratio. - by HUYA - 17.01.2013, 18:55
Re: Kills / Deaths Ratio. - by B-Matt - 17.01.2013, 18:59
Re: Kills / Deaths Ratio. - by HUYA - 17.01.2013, 19:00
Re: Kills / Deaths Ratio. - by Sasino97 - 17.01.2013, 20:35
Re: Kills / Deaths Ratio. - by HUYA - 18.01.2013, 09:59
Re: Kills / Deaths Ratio. - by RajatPawar - 18.01.2013, 11:00
Re: Kills / Deaths Ratio. - by Threshold - 18.01.2013, 11:02
Re: Kills / Deaths Ratio. - by HUYA - 18.01.2013, 12:54
Re: Kills / Deaths Ratio. - by LarzI - 18.01.2013, 13:31
Re: Kills / Deaths Ratio. - by HUYA - 19.01.2013, 15:08

Forum Jump:


Users browsing this thread: 1 Guest(s)