SA-MP Forums Archive
Help me i cant slove this problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me i cant slove this problem (/showthread.php?tid=443565)



Help me i cant slove this problem - camaro8 - 12.06.2013

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


Re: Help me i cant slove this problem - Sulps - 12.06.2013

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


Re : Help me i cant slove this problem - camaro8 - 12.06.2013

dosent work too i already have errors


Re: Help me i cant slove this problem - [MG]Dimi - 12.06.2013

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?