Medic class cmds !
#5

Quote:
Originally Posted by JaTochNietDan
Посмотреть сообщение
Your syntax for the if statement is incorrect.

= is the assign operator, it is used for assigning a value to something
== means equals to, it is used for comparing two values

pawn Код:
if (gTeam[playerid] == MEDIC)
Additionally I think the if statement should be placed within the if statement containing the string comparison for logical reasons, but that's up to you.

As for a command with parameters, you should look into using DCMD or ZCMD and sscanf. They should help you significantly in making commands with multiple parameters, you should also use search for examples, there's plenty of them already around the forums!
ok the warning is gone ... but you know /heal <playerid> ? (a)
Reply


Messages In This Thread
Medic class cmds ! - by Michael@Belgium - 01.02.2011, 16:01
Re: Medic class cmds ! - by Marricio - 01.02.2011, 16:11
Re: Medic class cmds ! - by JaTochNietDan - 01.02.2011, 16:11
Re: Medic class cmds ! - by Marricio - 01.02.2011, 16:14
Re: Medic class cmds ! - by Michael@Belgium - 01.02.2011, 16:20
Re: Medic class cmds ! - by Marricio - 01.02.2011, 16:33
Re: Medic class cmds ! - by Michael@Belgium - 01.02.2011, 17:06
Re: Medic class cmds ! - by Shepster - 09.10.2011, 18:14

Forum Jump:


Users browsing this thread: 1 Guest(s)