Quote:
Originally Posted by IceCube!
I don't usually help people here anymore this was really a miss click so I'm not posting the code.
Your problem however isn't your command conversion it's that you've either not defined "playername" which I'd assume would get the name of player who called the command.
It could also be that you want the name the name of the player you are targeting, you have this code here:
pawn Код:
new giveplayername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
I'm going to assume you want the name of the player, going by that code, which can be resolved by adding the following line above GetPlayerName:
pawn Код:
new giveplayername[MAX_PLAYER_NAME]; new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
.
Note that haven't removed giveplayerame as you are using that else where in your code, so I recommend leaving it... which is why I assumed you wanted the players name who called the command.
|
fair enough bud, either way i really do appreciate it..
thank you very much

got 1 error left and i did fix the first lot of errors then got a shed load of others lol but done them now i think
this is it lol and gona rep you all right now

(10149) : error 001: expected token: ";", but found "-identifier-"
format(string, sizeof(string), "* %s swings at %s and tries to knock him out.", sendername, giveplayername);
check it against the rest it looks fine to me but i am a newb

plus used #pragma tabsize 0 for loose indentation is that ok or stupid for commands?
what i have now from earlier with the one error
http://pastebin.com/yGEhh38J
edit: have i got to?
think i got it now lol cheers guys