View Full Version : Help me i cant slove this problem

12/06/2013, 05:22 PM
Hello gays, i have a problems when i compile

new string[2650];
format(string,sizeof(string),"%s ",PlayerName(playerid));

stock PlayerName(playerid)
new name[255];
GetPlayerName(playerid, name, 255);
return name;


: error 012: invalid function call, not a valid address
warning 215: expression has no effect
: error 001: expected token: ";", but found ")"
: error 029: invalid expression, assumed zero

12/06/2013, 05:24 PM
new string[2650];
Decrease the size to 24
new string[24];

12/06/2013, 05:25 PM
dosent work too i already have errors

12/06/2013, 05:26 PM
For string in both cases you need new string[MAX_PLAYER_NAME+1];

Also code you showed us doesn't point to any problem. Can you provide us with 10 lines before and 10 lines after code you posted?