[HELP] Telephone number
#1

Hey, I have started an RP script from 0, and I wanted the telephone numbers to be in this format:
555-w/e.. but I couldn't script it..

the phone number is getting saved, but it isn't in that format.

here's the code: new number = 100000 + random(899999);
Reply
#2

Quote:
Originally Posted by [ĦŁ₣
ЉǾǖŦĦЗŁΛẄ ]
if you want the '-' [dash] character you need to make it a string, ("555-%d", PlayerNumberVar)

You could make a custom function that returns a string of a players number

Post your Player Info Number Variable [something like pInfo[playerid][PhoneNum]]

100000 + random(899999); will just make some random large integer and possibly won't work properly [everything has a limit]

I don't even think he made stuff like that yet i think he just thought it would work.
Reply
#3

steven, I did. but thanks for the replies, I'll try to make it work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)