SA-MP Forums Archive
Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem (/showthread.php?tid=259878)



Problem - Face9000 - 06.06.2011

Hi guys,im creating textdraw to show kills of teams,so i added textdraw and loop,but i get errors in this piece of code:

pawn Код:
new usakills[128];
            format(usakills, sizeof(usakills), "Usa Kills: %s",UsaKills(i));
            TextDrawSetString(usakills[i], usakills);

------

Код:
error 021: symbol already defined: "usakills"
warning 219: local variable "usakills" shadows a variable at a preceding level
error 012: invalid function call, not a valid address
 warning 215: expression has no effect
 error 001: expected token: ";", but found ")"
 error 029: invalid expression, assumed zero
 fatal error 107: too many error messages on one line



Re: Problem - Face9000 - 06.06.2011

Help please !


Re: Problem - *IsBack - 06.06.2011

pawn Код:
new usakills1[128];
format(usakills1, sizeof(usakills1), "Usa Kills: %s",UsaKills(i));
TextDrawSetString(usakills[i], usakills1);



Re: Problem - Face9000 - 06.06.2011

LoL? It's same...


Re: Problem - Ash. - 06.06.2011

Quote:
Originally Posted by Logitech90
Посмотреть сообщение
LoL? It's same...
No it's not. Read it character for character... You'll see a difference.


Re: Problem - Face9000 - 06.06.2011

I mean,i get same errors.


Re: Problem - *IsBack - 06.06.2011

Quote:
Originally Posted by Logitech90
Посмотреть сообщение
I mean,i get same errors.
So the problem is somewhere else then.