07.01.2014, 14:46
Quote:
|
GetPlayerName returns the lenght of the player's name. This is not how we copy a string to another string.
pawn Код:
pawn Код:
|
One was at "#define strcpy(%0,%1,%2) strcat((%0[0] = '\0', %0), %1, %2)"
-- test2.pwn(117) : warning 201: redefinition of constant/macro (symbol "strcpy(%0,%1,%2)") --
And the others were at "strcpy(PlayerInfo[id][pOriginalName], originalname, MAX_PLAYER_NAME);"
-- test2.pwn(2241) : error 001: expected token: ")", but found "["
-- test2.pwn(2241) : warning 215: expression has no effect
-- test2.pwn(2241) : error 001: expected token: ";", but found "]"
-- test2.pwn(2241) : error 029: invalid expression, assumed zero
-- test2.pwn(2241) : fatal error 107: too many error messages on on


