Number sa-mp format (000-000) ?
#1

http://stackoverflow.com/questions/4...numbers-in-php


How can i use it in pawn ?
Reply
#2

You mean sth like this:

PHP код:
print(ConvertNumber("+11234567890"));
//-> 123-456-7890
stock ConvertNumber(const string[]) {
    new 
buffer[15];
    
strcat(buffer,string),strdel(buffer,0,2);
    
strins(buffer,"-",3,sizeof buffer);
    
strins(buffer,"-",7,sizeof buffer);
    return 
buffer;

Greekz
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)