Array length
#2

Lets go back to basics...

If you want to just store a string (some text) then do this:

pawn Код:
new field[32];
In simple terms the 32 part means it can store up to 32 characters.

When you want to view the contents of your variable in the server console do this:

pawn Код:
printf("My field variable is: %s", field);
Hope this gets you on track.

Reply


Messages In This Thread
Array length - by selEcT - 05.07.2010, 20:49
Re: Array length - by Matite - 05.07.2010, 21:00
Re: Array length - by selEcT - 06.07.2010, 18:41

Forum Jump:


Users browsing this thread: 1 Guest(s)