26.11.2012, 14:01
Ok all i got this error.
And pawn code
What is the problem then?
Код:
C:\Documents and Settings\karu\My Documents\samp03e_svr_R2_win32\gamemodes\driftunion1.2.2.pwn(94) : error 001: expected token: ",", but found "-string-" C:\Documents and Settings\karu\My Documents\samp03e_svr_R2_win32\gamemodes\driftunion1.2.2.pwn(94) : warning 215: expression has no effect C:\Documents and Settings\karu\My Documents\samp03e_svr_R2_win32\gamemodes\driftunion1.2.2.pwn(94) : error 001: expected token: ";", but found ")" C:\Documents and Settings\karu\My Documents\samp03e_svr_R2_win32\gamemodes\driftunion1.2.2.pwn(94) : error 029: invalid expression, assumed zero C:\Documents and Settings\karu\My Documents\samp03e_svr_R2_win32\gamemodes\driftunion1.2.2.pwn(94) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/health", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 100);
SendClientMessage(playerid, 0x33CCFFAA "You have been healed");
return 1;
}
return 0;
}