String size problem
#1

pawn Код:
stock UpdateStatsTextdraw(playerid)
{
    new ratio[128];
    TextDrawSetString(Textkills[playerid], PlayerInfo[playerid][pKills]);
    TextDrawSetString(Textdeaths[playerid], PlayerInfo[playerid][pDeaths]);
    ratio[128] = (PlayerInfo[playerid][pKills]/PlayerInfo[playerid][pDeaths]);
    TextDrawSetString(Textratio[playerid], ratio);
}
And the error is:
pawn Код:
error 032: array index out of bounds (variable "ratio")
On the line:
pawn Код:
ratio[256] = (PlayerInfo[playerid][pKills]/PlayerInfo[playerid][pDeaths]);
Reply


Messages In This Thread
String size problem - by Dan. - 13.07.2012, 20:01
Re: String size problem - by Kirollos - 13.07.2012, 20:05
Re: String size problem - by AndreT - 13.07.2012, 20:05
Re: String size problem - by Dan. - 13.07.2012, 20:11
Re: String size problem - by Vince - 13.07.2012, 20:18
Re: String size problem - by Dan. - 13.07.2012, 20:22

Forum Jump:


Users browsing this thread: 1 Guest(s)