PlayerName
#6

You're right,[HLF]Southclaw...

But I have another problem:
Код:
public OnPlayerUpdate(playerid)
{
    if(pStats[playerid][Kills] == 50)
	{
	    SendClientMessage(playerid,COLOR_LIGHTBLUE,"INFO: Because you made 50 kils you have been promoted to Rank 2 !");
	    new string[128];
	    format(string,128,"INFO: %s has made 50 kills and has been promoted to Rank 2 !",PlayerName(playerid));
	    SendClientMessageToAll(COLOR_LIGHTBLUE,string);
	    pStats[playerid][Rank] = 2;
	}
if(!IsPlayerConnected(playerid)) return 0;

    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        for(new i = 0; i < sizeof(SpikeInfo); i++)
  	    {
  	        if(IsPlayerInRangeOfPoint(playerid, 3.0, SpikeInfo[i][sX], SpikeInfo[i][sY], SpikeInfo[i][sZ]))
            {
  	            if(SpikeInfo[i][sCreated] == 1)
  	            {
  	                new panels, doors, lights, tires;
  	                new carid = GetPlayerVehicleID(playerid);
		            GetVehicleDamageStatus(carid, panels, doors, lights, tires);
		            tires = encode_tires(1, 1, 1, 1);
		            UpdateVehicleDamageStatus(carid, panels, doors, lights, tires);
  	                return 0;
  	            }
  	        }
       }
  	}

	return 1;
}
And I want to delete this:
Код:
if(!IsPlayerConnected(playerid)) return 0;

    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        for(new i = 0; i < sizeof(SpikeInfo); i++)
  	    {
  	        if(IsPlayerInRangeOfPoint(playerid, 3.0, SpikeInfo[i][sX], SpikeInfo[i][sY], SpikeInfo[i][sZ]))
            {
  	            if(SpikeInfo[i][sCreated] == 1)
  	            {
  	                new panels, doors, lights, tires;
  	                new carid = GetPlayerVehicleID(playerid);
		            GetVehicleDamageStatus(carid, panels, doors, lights, tires);
		            tires = encode_tires(1, 1, 1, 1);
		            UpdateVehicleDamageStatus(carid, panels, doors, lights, tires);
  	                return 0;
  	            }
  	        }
       }
  	}
and i get the follow errors
Код:
D:\SAMP\Director Nou\gamemodes\TDM.pwn(318) : error 017: undefined symbol "PlayerName"
D:\SAMP\Director Nou\gamemodes\TDM.pwn(324) : error 017: undefined symbol "SAVE_PATH"
D:\SAMP\Director Nou\gamemodes\TDM.pwn(340) : error 017: undefined symbol "PlayerName"
D:\SAMP\Director Nou\gamemodes\TDM.pwn(342) : error 017: undefined symbol "SAVE_PATH"
D:\SAMP\Director Nou\gamemodes\TDM.pwn(373) : error 017: undefined symbol "PlayerName"
D:\SAMP\Director Nou\gamemodes\TDM.pwn(389) : error 017: undefined symbol "PlayerName"
D:\SAMP\Director Nou\gamemodes\TDM.pwn(403) : error 017: undefined symbol "PlayerName"
D:\SAMP\Director Nou\gamemodes\TDM.pwn(423) : error 017: undefined symbol "PlayerName"
D:\SAMP\Director Nou\gamemodes\TDM.pwn(433) : error 017: undefined symbol "PlayerName"
D:\SAMP\Director Nou\gamemodes\TDM.pwn(873) : error 017: undefined symbol "PlayerName"
D:\SAMP\Director Nou\gamemodes\TDM.pwn(907) : error 079: inconsistent return types (array & non-array)
D:\SAMP\Director Nou\gamemodes\TDM.pwn(910) : error 079: inconsistent return types (array & non-array)
D:\SAMP\Director Nou\gamemodes\TDM.pwn(911) : error 017: undefined symbol "SAVE_PATH"
D:\SAMP\Director Nou\gamemodes\TDM.pwn(934) : error 002: only a single statement (or expression) can follow each "case"
D:\SAMP\Director Nou\gamemodes\TDM.pwn(934) : error 004: function "OnPlayerClickPlayer" is not implemented
D:\SAMP\Director Nou\gamemodes\TDM.pwn(936) : error 079: inconsistent return types (array & non-array)
D:\SAMP\Director Nou\gamemodes\TDM.pwn(939) : warning 225: unreachable code
D:\SAMP\Director Nou\gamemodes\TDM.pwn(939) : error 029: invalid expression, assumed zero
D:\SAMP\Director Nou\gamemodes\TDM.pwn(939) : error 017: undefined symbol "PlayerName"
D:\SAMP\Director Nou\gamemodes\TDM.pwn(942) : error 090: public functions may not return arrays (symbol "OnDialogResponse")
D:\SAMP\Director Nou\gamemodes\TDM.pwn(944) : warning 225: unreachable code
D:\SAMP\Director Nou\gamemodes\TDM.pwn(944) : error 029: invalid expression, assumed zero
D:\SAMP\Director Nou\gamemodes\TDM.pwn(944) : error 017: undefined symbol "SAVE_PATH"
D:\SAMP\Director Nou\gamemodes\TDM.pwn(949) : error 090: public functions may not return arrays (symbol "OnDialogResponse")
D:\SAMP\Director Nou\gamemodes\TDM.pwn(951) : warning 225: unreachable code
D:\SAMP\Director Nou\gamemodes\TDM.pwn(951) : error 029: invalid expression, assumed zero
D:\SAMP\Director Nou\gamemodes\TDM.pwn(951) : error 017: undefined symbol "udb_hash"
D:\SAMP\Director Nou\gamemodes\TDM.pwn(952) : error 017: undefined symbol "buf"
D:\SAMP\Director Nou\gamemodes\TDM.pwn(958) : error 017: undefined symbol "buf"
Reply


Messages In This Thread
PlayerName - by .EnjatsRed. - 23.06.2012, 16:22
Re: PlayerName - by justinnater - 23.06.2012, 17:45
Re: PlayerName - by .EnjatsRed. - 23.06.2012, 17:52
Re: PlayerName - by .FuneraL. - 23.06.2012, 17:56
Re: PlayerName - by .EnjatsRed. - 23.06.2012, 18:24
Re: PlayerName - by .EnjatsRed. - 24.06.2012, 10:41
Re: PlayerName - by Grand_Micha - 24.06.2012, 10:47
Re: PlayerName - by .EnjatsRed. - 24.06.2012, 12:38

Forum Jump:


Users browsing this thread: 1 Guest(s)