21.02.2009, 10:11
pawn Код:
new Origin[MAX_PLAYER_NAME];
format(Origin, sizeof(Origin), "Nowhere");
PlayerInfo[playerid][pOrigin] = Origin; // error 006 here
new Origin[MAX_PLAYER_NAME];
format(Origin, sizeof(Origin), "Nowhere");
PlayerInfo[playerid][pOrigin] = Origin; // error 006 here
new Origin[MAX_PLAYER_NAME];
format(Origin, sizeof(Origin), "Nowhere");
strmid(PlayerInfo[playerid][pOrigin], string, 0, strlen(string), 128);
Originally Posted by Dujma
pawn Код:
|
strmid(PlayerInfo[playerid][pOrigin], string, 0, strlen(string), MAX_PLAYER_NAME);
Originally Posted by [K4L
|
Originally Posted by Dujma
You can change the string size to this
pawn Код:
|
Originally Posted by Coicatak
dude.
I'll actually change it to 64 because I don't want it to have more the 64 characters Thanks anyway |
new Origin[MAX_PLAYER_NAME];
Originally Posted by Coicatak
Quote:
Quote:
I'll actually change it to 64 because I don't want it to have more the 64 characters Thanks anyway |
#define MAX_ORIGIN_SIZE 64
//...
format(PlayerInfo[playerid][pOrigin], MAX_ORIGIN_SIZE, "Nowhere");
Originally Posted by Dujma
hehe you already define that the max lenght of string is 16 so there is no point of using 128 or 64 for input.
|