31.07.2011, 08:15
Show where you declare the variable "PlayerData[playerid][PhoneNumber]".
This may help.
or this is safer.
Use the first version (strcat) if "PlayerData[playerid][PhoneNumber]" is an empty array.
Use the second version (format) if "PlayerData[playerid][PhoneNumber]" holds/may hold data.
Remember you can't assign strings like you do with ints ect. Ie, String = value, will not work.
This may help.
pawn Код:
strcat(PlayerData[playerid][PhoneNumber], String);
pawn Код:
format(PlayerData[playerid][PhoneNumber], sizeof(PlayerData[playerid][PhoneNumber]), "%s", String);
Use the second version (format) if "PlayerData[playerid][PhoneNumber]" holds/may hold data.
Remember you can't assign strings like you do with ints ect. Ie, String = value, will not work.

