String is not being stored correctly in enum
#1

I don't understand what's wrong with this.

I added this:

PHP код:
nInfo[1][ID] = 1;
    new 
cName[50], time[15], date[15], message[250];
    
format(cName50"John");
    
format(time15"20:53");
    
format(date15"08/09/2017");
    
format(message250"Someone please come really quick, my wife is giving birth, oh damn this one is gonna be a gangsta");
    
nInfo[1][CallerName] = cName;
    
nInfo[1][CallerPhone] = 523221;
    
nInfo[1][Time] = time;
    
nInfo[1][Date] = date;
    
nInfo[1][Message] = message
under OnPlayerConnect just to have something to test with

but when I try to read that in game, it is displayed as this: https://imgur.com/a/7IZSx

So looks like the date is bugged but why, the thing that is displayed has no logic
Reply
#2

Use format for strings not '='.
Reply
#3

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
Use format for strings not '='.
Oh wow, I just spotted the issue, damn, lol I was so blind, thanks tho
Reply
#4

Quote:
Originally Posted by AndreiWow
Посмотреть сообщение
Oh wow, I just spotted the issue, damn, lol I was so blind, thanks tho
You are welcome, have a good night.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)