Help Me I Forgot The Code
#4

Add new String[MAX_PLAYERS]; beside, Name[MAX_PLAYERS];

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);
And for this:
pawn Код:
warning 219: local variable "Name" shadows a variable at a preceding level
it means you have defined "Name" somewhere else in your script, i suggest keep all the variables at the top of your script.
Reply


Messages In This Thread
Help Me I Forgot The Code - by hadzx - 05.11.2010, 12:27
Re: Help Me I Forgot The Code - by Tee - 05.11.2010, 12:50
Re: Help Me I Forgot The Code - by hadzx - 05.11.2010, 12:50
Re: Help Me I Forgot The Code - by Tee - 05.11.2010, 12:52
Re: Help Me I Forgot The Code - by hadzx - 05.11.2010, 12:54
Re: Help Me I Forgot The Code - by Tee - 05.11.2010, 12:56
Re: Help Me I Forgot The Code - by hadzx - 05.11.2010, 13:02
Re: Help Me I Forgot The Code - by Tee - 05.11.2010, 13:04

Forum Jump:


Users browsing this thread: 1 Guest(s)