13.03.2015, 14:43
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:
Error:
When I define params (new params; ):
//
I have done someting:
PHP код:
new string[100], pDeaths, player1, h, m, s,playername[MAX_PLAYER_NAME];
if(isnull(params)) player1 = playerid;
else player1 = strval(params);
if(IsPlayerConnected(player1)) {
TotalGameTime(player1, h, m, s);
GetPlayerName(player1, playername, sizeof(playername));
if(PlayerInfo[player1][Deaths] == 0) pDeaths = 1; else pDeaths = PlayerInfo[player1][Deaths];
new str[120], str1[100], str2[100];
format(str, sizeof(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.000000, 10.000000, str);
TextDrawBackgroundColor(Web, 255);
TextDrawFont(Web, 1);
TextDrawLetterSize(Web, 0.330000, 1.200000);
TextDrawColor(Web, -1);
TextDrawSetOutline(Web, 1);
TextDrawSetProportional(Web, 1);
TextDrawSetShadow(Web,1);
PHP код:
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(1411) : error 017: undefined symbol "params"
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(1411) : error 029: invalid expression, assumed zero
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(1411) : error 017: undefined symbol "params"
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(1411) : fatal error 107: too many error messages on one line
PHP код:
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(1411) : error 028: invalid subscript (not an array or too many subscripts): "params"
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(1411) : error 029: invalid expression, assumed zero
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(1411) : error 028: invalid subscript (not an array or too many subscripts): "params"
C:\Users\Administrator\Desktop\ProjectSvT\gamemodes\SvTMike.pwn(1411) : fatal error 107: too many error messages on one line