Quote:
Originally Posted by pascallj
What do you mean? Sorry my English is very bad.
This is also needed:
pawn Код:
{ if(strcmp("/heal", cmdtext, true, 10) == 0) { if(gTeam[playerid] = TEAM_MEDIC) { SetPlayerHealth(playerid, 100); SendClientMessage(playerid,COLOR_YELLOW, "you have cured cured (id: %d)"); return 1; }
if(gTeam[playerid] = TEAM_COP) { SendClientMessage(playerid, COLOR_YELLOW, "only medics can heal people"); return 1;
}
else if(gTeam[playerid] == TEAM_CIVILIAN) { SendClientMessage(playerid, COLOR_YELLOW, "only medics can heal players"); return 1; } } }
And please past your code between this tags:
Код:
pawn Код:
{if(strcmp("/heal", cmdtext, true, 10) == 0) {line 423 if(gTeam[playerid] = TEAM_MEDIC) {SetPlayerHealth(playerid, 100);SendClientMessage(playerid,COLOR_YELLOW, "you have cured cured (id: %d)");return 1;}line 429 if(gTeam[playerid] = TEAM_COP) {SendClientMessage(playerid, COLOR_YELLOW, "only medics can heal people");return 1;}else if(gTeam[playerid] == TEAM_CIVILIAN) {SendClientMessage(playerid, COLOR_YELLOW, "only medics can heal players");return 1;}}line 440}
|
i added that under OnPlayerCommandText and get these errors
C:\Documents and Settings\matt\Desktop\SAMP LEARNING\gamemodes\learning.pwn(423) : warning 211: possibly unintended assignment
C:\Documents and Settings\matt\Desktop\SAMP LEARNING\gamemodes\learning.pwn(429) : warning 211: possibly unintended assignment
C:\Documents and Settings\matt\Desktop\SAMP LEARNING\gamemodes\learning.pwn(440) : warning 209: function "OnPlayerCommandText" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Warnings.