if(strcmp(cmdtext, "/update", true) == 0) { SendClientMessage(playerid, COLOR_GREEN,"Urmatorul update va fi pe data de 08.12.2012 ( Sambata ). "); return 1; }
C:\Users\Andrei\Desktop\Street Zone\gamemodes\STR.pwn(8797) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\Andrei\Desktop\Street Zone\gamemodes\STR.pwn(8797) : warning 215: expression has no effect C:\Users\Andrei\Desktop\Street Zone\gamemodes\STR.pwn(8797) : error 001: expected token: ";", but found "-string-" C:\Users\Andrei\Desktop\Street Zone\gamemodes\STR.pwn(8797) : warning 215: expression has no effect C:\Users\Andrei\Desktop\Street Zone\gamemodes\STR.pwn(8797) : error 001: expected token: ";", but found ")" C:\Users\Andrei\Desktop\Street Zone\gamemodes\STR.pwn(8797) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
#define COLOR_GREEN 0x00FF33FF
Add this to the top of your script.
pawn Код:
|
#define COLOR_GREEN 0x00FF33FF
if (strcmp("/update", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_GREEN,"Urmatorul update va fi pe data de 08.12.2012 ( Sambata ). ");
return 1;
}
The problem occured because " ) " ends the function. To put " ) " inside strings you need to do " \) "
|
Nonsense. Any valid character should work in a literal string. The only exeception being the double quotes.
|
if(strcmp(cmdtext, "/update", true) == 0) {
SendClientMessage(playerid, COLOR_GREEN,"Urmatorul update va fi pe data de 08.12.2012 ( Sambata ). ");
return 1;
}