28.06.2009, 18:03
{
if (strcmp("/heal", cmdtext, true, 10) ==0)
{
if gTeam[playerid] = TEAM_COP;
{
SetPlayerHealth(playerid, 100);
SendPlayerMessage[playerid,COLOR_YELLOW, "you have cured cured (id: %d)");
}
if gTeam[playerid] = TEAM_COP;
SendClientMessage(playerid,COLOR_YELLOW, "only medics can heal people");
else if(gTeam[playerid] == TEAM_CIVILIAN)
SendClientMessage(playerid,COLOR_YELLOW), "only medics can heal players");
return 1;
}
}
i dont even know if i got the principle of it right please help
C:\Documents and Settings\matt\Desktop\SAMP LEARNING\gamemodes\learning.pwn(427) : warning 211: possibly unintended assignment
C:\Documents and Settings\matt\Desktop\SAMP LEARNING\gamemodes\learning.pwn(427) : error 001: expected token: "*then", but found ";"
C:\Documents and Settings\matt\Desktop\SAMP LEARNING\gamemodes\learning.pwn(427) : error 036: empty statement
C:\Documents and Settings\matt\Desktop\SAMP LEARNING\gamemodes\learning.pwn(430) : error 017: undefined symbol "SendPlayerMessage"
C:\Documents and Settings\matt\Desktop\SAMP LEARNING\gamemodes\learning.pwn(430) : warning 215: expression has no effect
C:\Documents and Settings\matt\Desktop\SAMP LEARNING\gamemodes\learning.pwn(430) : warning 215: expression has no effect
C:\Documents and Settings\matt\Desktop\SAMP LEARNING\gamemodes\learning.pwn(430) : warning 215: expression has no effect
C:\Documents and Settings\matt\Desktop\SAMP LEARNING\gamemodes\learning.pwn(430) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\matt\Desktop\SAMP LEARNING\gamemodes\learning.pwn(430) : error 029: invalid expression, assumed zero
C:\Documents and Settings\matt\Desktop\SAMP LEARNING\gamemodes\learning.pwn(430) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
6 Errors.
if (strcmp("/heal", cmdtext, true, 10) ==0)
{
if gTeam[playerid] = TEAM_COP;
{
SetPlayerHealth(playerid, 100);
SendPlayerMessage[playerid,COLOR_YELLOW, "you have cured cured (id: %d)");
}
if gTeam[playerid] = TEAM_COP;
SendClientMessage(playerid,COLOR_YELLOW, "only medics can heal people");
else if(gTeam[playerid] == TEAM_CIVILIAN)
SendClientMessage(playerid,COLOR_YELLOW), "only medics can heal players");
return 1;
}
}
i dont even know if i got the principle of it right please help
C:\Documents and Settings\matt\Desktop\SAMP LEARNING\gamemodes\learning.pwn(427) : warning 211: possibly unintended assignment
C:\Documents and Settings\matt\Desktop\SAMP LEARNING\gamemodes\learning.pwn(427) : error 001: expected token: "*then", but found ";"
C:\Documents and Settings\matt\Desktop\SAMP LEARNING\gamemodes\learning.pwn(427) : error 036: empty statement
C:\Documents and Settings\matt\Desktop\SAMP LEARNING\gamemodes\learning.pwn(430) : error 017: undefined symbol "SendPlayerMessage"
C:\Documents and Settings\matt\Desktop\SAMP LEARNING\gamemodes\learning.pwn(430) : warning 215: expression has no effect
C:\Documents and Settings\matt\Desktop\SAMP LEARNING\gamemodes\learning.pwn(430) : warning 215: expression has no effect
C:\Documents and Settings\matt\Desktop\SAMP LEARNING\gamemodes\learning.pwn(430) : warning 215: expression has no effect
C:\Documents and Settings\matt\Desktop\SAMP LEARNING\gamemodes\learning.pwn(430) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\matt\Desktop\SAMP LEARNING\gamemodes\learning.pwn(430) : error 029: invalid expression, assumed zero
C:\Documents and Settings\matt\Desktop\SAMP LEARNING\gamemodes\learning.pwn(430) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
6 Errors.