AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   String Variable Size (Noob Question) (https://forums.alliedmods.net/showthread.php?t=28745)

KylixMynxAltoLAG 05-21-2006 18:49

String Variable Size (Noob Question)
 
I have a variable that show some items separated with a "^n" character.

My noob question is that the "^n" is taken a place in the size specified for the string variable, so for example:

Code:
new days[18] days = "^n1. Lunes^n2. Martes^n"
How much places will take from the declared size of the variable the character "^n"? 1, 2 or 0?

Maybe the above question is stupid, but it is still dificult for me to know if when I make a variable:
Code:
new MiVariable[10]
the number 10 is the amount of characters that she can hold? or it is an array of 10 places?. I'm confiused since I read the scripting help from the Amx Mod X Scripting Help Docs.

Thanks.

PD: I always have work with ObjetcPascal (Delphi) variables that are a little different that the ones Pawn uses.

Hawk552 05-21-2006 18:57

I'm pretty sure it's 1 character.

Geesu 05-21-2006 23:31

yea ^n is just one character...

KylixMynxAltoLAG 05-22-2006 15:04

Ok, thanks a lot Hawk552 & Geesu. Now I can fix my problem. :)


All times are GMT -4. The time now is 16:32.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.