[Help] Error's and warning's
#1

I have add this [TMS] clan
But i got an error's and warning's

Код:
	if(PlayerInfo[playerid][LoggedIn] == 1) {
		if(PlayerInfo[playerid][Level] >= 1) {
	 		SetPlayerColor(playerid,ADMIN_RED);
			new name[MAX_PLAYER_NAME], string[128];
	  	     GetPlayerName(playerid, name, sizeof(name));
	  	     format(string, sizeof(string),"[TMS]%s", name);
	  	     SetPlayerName(playerid, string);
	 		GameTextForPlayer(playerid,"~y~~n~~n~~n~~n~Welcome ~r~Admin",4000,3);
		}
	}
Error's and warning's
Код:
C:\Documents and Settings\Sunny\Desktop\The Matrix™ Stunting's Updated\The Matrix™ Stunting's\The Matrix™ Stunting's\gamemodes\stunt.pwn(7191) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\Sunny\Desktop\The Matrix™ Stunting's Updated\The Matrix™ Stunting's\The Matrix™ Stunting's\gamemodes\stunt.pwn(7191) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Sunny\Desktop\The Matrix™ Stunting's Updated\The Matrix™ Stunting's\The Matrix™ Stunting's\gamemodes\stunt.pwn(7192) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Sunny\Desktop\The Matrix™ Stunting's Updated\The Matrix™ Stunting's\The Matrix™ Stunting's\gamemodes\stunt.pwn(7192) : error 035: argument type mismatch (argument 2)
Help please
Also sorry for my bad english!
Reply
#2

pawn Код:
if(PlayerInfo[playerid][LoggedIn] == 1) {
        if(PlayerInfo[playerid][Level] >= 1) {
            SetPlayerColor(playerid,ADMIN_RED);
            //new name[MAX_PLAYER_NAME], string[128];
             GetPlayerName(playerid, name, sizeof(name));
             format(string, sizeof(string),"[TMS]%s", name);
             SetPlayerName(playerid, string);
            GameTextForPlayer(playerid, "~y~~n~~n~~n~~n~Welcome ~r~Admin", 3000, 3);
        }
    }
Try that.
Reply
#3

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)