Undefined symbol: player1
#9

Add this on top of your script:
PHP Code:
new Text:Web[MAX_PLAYERS]; 
In OnGameModeInit:
PHP Code:
    for(new i=0;i<MAX_PLAYERS;i++)
    {
        
Web[i] = TextDrawCreate(485.00000010.000000"_"); 
        
TextDrawBackgroundColor(Web[i], 255); 
        
TextDrawFont(Web[i], 3); 
        
TextDrawLetterSize(Web[i], 0.3300001.200000); 
        
TextDrawColor(Web[i], -1); 
        
TextDrawSetOutline(Web[i], 1); 
        
TextDrawSetProportional(Web[i], 1); 
        
TextDrawSetShadow(Web[i],1); 
And under OnPlayerSpawn:
PHP Code:
new string[128];
format(stringsizeof(string), "Scores: %d | Money: $%d | Kills: %d | Deaths: %d | K/D Ratio: %0.2f"GetPlayerScore(playerid), GetPlayerScore(playerid), GetPlayerMoney(playerid), PlayerInfo[playerid][Kills], PlayerInfo[playerid][Deaths], Float:PlayerInfo[playerid][Kills]/Float:pDeaths);
TextDrawSetString(Web[playerid], string);
TextDrawShowForPlayer(playeridWeb[playerid]); 
Reply


Messages In This Thread
Undefined symbol: player1 - by Fantje - 12.03.2015, 14:47
Re: Undefined symbol: playerid while IS defined - by ATGOggy - 12.03.2015, 14:51
Re: Undefined symbol: playerid while IS defined - by Fantje - 12.03.2015, 14:57
Re: Undefined symbol: playerid while IS defined - by ATGOggy - 12.03.2015, 14:59
Re: Undefined symbol: player1 - by Fantje - 12.03.2015, 14:59
Re: Undefined symbol: player1 - by Fantje - 12.03.2015, 15:02
Re: Undefined symbol: player1 - by ATGOggy - 12.03.2015, 15:03
Re: Undefined symbol: player1 - by Fantje - 12.03.2015, 15:05
Re: Undefined symbol: player1 - by ATGOggy - 12.03.2015, 15:10
Re: Undefined symbol: player1 - by Fantje - 12.03.2015, 15:20

Forum Jump:


Users browsing this thread: 3 Guest(s)