number format
#1

randphonec:

Код:
new randphonec = 1000000 + random(8999999)
code:

Код:
new numberro[11];
					format(numberro, sizeof(numberro), "074%s", randphonec);
					PlayerInfo[playerid][pPnumber] = numberro[11];
I want to give a phone nr. in romanian format ex: (0742133531)

Error:

Код:
error 032: array index out of bounds (variable "numberro")
on the line:

Код:
PlayerInfo[playerid][pPnumber] = numberro[11];
Reply


Messages In This Thread
number format - by Longover - 28.02.2019, 14:37
Format phone number - by Longover - 28.02.2019, 14:43

Forum Jump:


Users browsing this thread: 1 Guest(s)