Please help with format
#3

Quote:
Originally Posted by [TDR
Strike ]
add on ur top of ur script

Код:
new pName;
new kName;
Rofl, nice solution, making the local strings into global integers.

Don't do that, you don't understand what you're doing. The idea of creating these strings is to store names, as shown in the first post.

To fix it, do this:
pawn Код:
GetPlayerName(killerid, kName, sizeof(kName));
GetPlayerName(playerid, pName, sizeof(pName));
What you were doing was getting the value returned by GetPlayerName(), not the name itself, which is most likely 0 or 1, and storing it to each array respectively, but you didn't tell the compiler which cell of the array to store the value to, so it issued an error.

And by the way, your format() line is valid, so don't worry about that. Though it's not going to use all 256 characters you allow it to.

Hope this helps,

~Cueball~
Reply


Messages In This Thread
Please help with format - by AiVAMAN - 08.06.2009, 06:23
Re: Please help with format - by gpclan - 08.06.2009, 06:37
Re: Please help with format - by Cueball - 08.06.2009, 07:24
Re: Please help with format - by AiVAMAN - 08.06.2009, 07:51

Forum Jump:


Users browsing this thread: 1 Guest(s)