Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

String is not being stored correctly in enum

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

I added this:

PHP Code:

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 :confused:

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>