05.11.2010, 12:52
Add new String[MAX_PLAYERS]; beside, Name[MAX_PLAYERS];
So it would look like this:
And for this:
it means you have defined "Name" somewhere else in your script, i suggest keep all the variables at the top of your script.
So it would look like this:
pawn Код:
new Name[MAX_PLAYER_NAME],String[MAX_PLAYERS];
GetPlayerName(playerid, Name, sizeof(Name));
format(String, sizeof(String), "%s entered the vault.",Name);
SendClientMessageToAll(0xBFBFBFFF, String);
pawn Код:
warning 219: local variable "Name" shadows a variable at a preceding level