Invalid character constant
#1

PHP код:
mysql_format(Database, DB_Query, sizeof(DB_Query), "INSERT INTO `DrugInventory` (`PlayerID`)\VALUES (%d)", PlayerInfo[playerid][ID]);
         
mysql_tquery(Database, DB_Query); 
PHP код:
C:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(2957) : error 027: invalid character constant
C
:\Users\andrei\Desktop\Scripting SA-MP\Basic RP Script Scratch FIX\gamemodes\U1.pwn(2957) : error 027: invalid character constant
Pawn compiler 3.2.3664              Copyright 
(c) 1997-2006, ITB CompuPhase
2 Errors
. 
Reply
#2

Solved...
PHP код:
mysql_format(Database, DB_Query, sizeof(DB_Query), "INSERT INTO `DrugInventory` (`PlayerID`)\
        VALUES (%d)"
, PlayerInfo[playerid][ID]); 
It was due to

\VALUES
I wrote it on a new line and it worked
Reply
#3

What you could also do was removing the \.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)