Help me i cant slove this problem
#1

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;
}


help

: 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
Reply
#2

new string[2650];
ZOMG?
Decrease the size to 24
new string[24];
Reply
#3

dosent work too i already have errors
Reply
#4

For string in both cases you need
pawn Код:
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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)