[HELP] Can't figure it out!
#10

Your code don't give errors but when I go ingame nothing shows ( by score, money, kills, deaths , ratio). It shows: 0 everywhere
//
I have done someting:

PHP код:
new string[100], pDeathsplayer1hms,playername[MAX_PLAYER_NAME];
    if(
isnull(params)) player1 playerid;
    else 
player1 strval(params);
    if(
IsPlayerConnected(player1)) {
     
TotalGameTime(player1hms);
    
GetPlayerName(player1playernamesizeof(playername));
    if(
PlayerInfo[player1][Deaths] == 0pDeaths 1; else pDeaths PlayerInfo[player1][Deaths];
    new 
str[120], str1[100], str2[100];
    
format(strsizeof(str),"| ------ | %s's Status | ------- |"PlayerName2(player1));
    
format(string,sizeof(string),"Scores: %d | Money: $%d | Kills: %d | Deaths: %d | K/D Ratio: %0.2f"GetPlayerScore(player1), GetPlayerMoney(player1), PlayerInfo[player1][Kills], PlayerInfo[player1][Deaths], Float:PlayerInfo[player1][Kills]/Float:pDeaths);
    
Web TextDrawCreate(485.00000010.000000str);
    
TextDrawBackgroundColor(Web255);
    
TextDrawFont(Web1);
    
TextDrawLetterSize(Web0.3300001.200000);
    
TextDrawColor(Web, -1);
    
TextDrawSetOutline(Web1);
    
TextDrawSetProportional(Web1);
    
TextDrawSetShadow(Web,1); 
Error:

PHP код:
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(1411) : error 017undefined symbol "params"
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(1411) : error 029invalid expressionassumed zero
C
:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(1411) : error 017undefined symbol "params"
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(1411) : fatal error 107too many error messages on one line 
When I define params (new params; ):

PHP код:
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(1411) : error 028invalid subscript (not an array or too many subscripts): "params"
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(1411) : error 029invalid expressionassumed zero
C
:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(1411) : error 028invalid subscript (not an array or too many subscripts): "params"
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(1411) : fatal error 107too many error messages on one line 
Reply


Messages In This Thread
[HELP] Can't figure it out! - by Fantje - 13.03.2015, 13:50
Re: [HELP] Can't figure it out! - by CalvinC - 13.03.2015, 14:01
Re: [HELP] Can't figure it out! - by Fantje - 13.03.2015, 14:02
Re: [HELP] Can't figure it out! - by CalvinC - 13.03.2015, 14:10
Re: [HELP] Can't figure it out! - by Fantje - 13.03.2015, 14:13
Re: [HELP] Can't figure it out! - by CalvinC - 13.03.2015, 14:19
Re: [HELP] Can't figure it out! - by Fantje - 13.03.2015, 14:22
Re: [HELP] Can't figure it out! - by CalvinC - 13.03.2015, 14:31
Re: [HELP] Can't figure it out! - by Fantje - 13.03.2015, 14:32
Re: [HELP] Can't figure it out! - by Fantje - 13.03.2015, 14:43

Forum Jump:


Users browsing this thread: 1 Guest(s)