Problem, please?
#1

I got an error. Take it look ( sorry for my english ).

Код:
 	if(strcmp(cmdtext, "/update", true) == 0) {
		SendClientMessage(playerid, COLOR_GREEN,"Urmatorul update va fi pe data de 08.12.2012 ( Sambata ). ");
		return 1;
     }

Error:

Код:
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.
Reply
#2

Which line is the error on? I do not see anything wrong with those lines of code, so it may be on one of the lines preceding these.
Reply
#3

Add this to the top of your script.
pawn Код:
#define COLOR_GREEN 0x00FF33FF
Reply
#4

Quote:
Originally Posted by maramizo
Посмотреть сообщение
Add this to the top of your script.
pawn Код:
#define COLOR_GREEN 0x00FF33FF
I have already
pawn Код:
#define COLOR_GREEN 0x00FF33FF
.
Reply
#5

Can somebody help me?
Reply
#6

PHP код:
    if (strcmp("/update"cmdtexttrue10) == 0)
    {
        
SendClientMessage(playeridCOLOR_GREEN,"Urmatorul update va fi pe data de 08.12.2012 ( Sambata ). ");
        return 
1;
    } 
It works.. For me.
Reply
#7

I have solved. For me, the problem is „( Sambata )” and I change it in „[ Sambata ]”
Reply
#8

The problem occured because " ) " ends the function. To put " ) " inside strings you need to do " \) "
Reply
#9

Quote:
Originally Posted by LarzI
Посмотреть сообщение
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.
Reply
#10

Quote:
Originally Posted by Vince
Посмотреть сообщение
Nonsense. Any valid character should work in a literal string. The only exeception being the double quotes.
pawn Код:
if(strcmp(cmdtext, "/update", true) == 0) {
        SendClientMessage(playerid, COLOR_GREEN,"Urmatorul update va fi pe data de 08.12.2012 ( Sambata ). ");
        return 1;
     }
Where are the so-called double quotes you speak of?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)