Invalid character constant
#1

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

Reply
#2

Solved...
PHP код:
mysql_format(DatabaseDB_Querysizeof(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: 4 Guest(s)