Calculating percents
#1

Код:
new playerscore[MAX_PLAYERS];
playerscore(playerid) = GetPlayerScore(playerid) // error line
new str3[128];
format(str3, 128, "Rank Progress:%%", (Float:playerscore[playerid] * Float:RankInfo[PR][RRequirement]/100));
SendClientMessage(playerid,COLOR_RED, str3);
Код:
C:\Documents and Settings\ED\My Documents\[UF]SF-TDM.pwn(1288) : error 012: invalid function call, not a valid address
C:\Documents and Settings\ED\My Documents\[UF]SF-TDM.pwn(1288) : warning 215: expression has no effect
C:\Documents and Settings\ED\My Documents\[UF]SF-TDM.pwn(1288) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\ED\My Documents\[UF]SF-TDM.pwn(1288) : error 029: invalid expression, assumed zero
C:\Documents and Settings\ED\My Documents\[UF]SF-TDM.pwn(1288) : fatal error 107: too many error messages on one line
Can someone help me?

Note i have commented the line wheres the error!
Reply


Messages In This Thread
Calculating percents - by armyoftwo - 30.11.2009, 14:00
Re: Calculating percents - by woot - 30.11.2009, 14:05
Re: Calculating percents - by MPKaboose - 30.11.2009, 14:05
Re: Calculating percents - by armyoftwo - 30.11.2009, 14:07
Re: Calculating percents - by Streetplaya - 30.11.2009, 14:12

Forum Jump:


Users browsing this thread: 1 Guest(s)