#define + Strings | Compiler do what it wants ...
#1

.:: SOLVED (see my last post) ::.

Hello people
I have a big problem with the following code:
Code:
Acc("Level","47");

#define Acc("%0","%1"); \
	EditAccount(playerid,"%0","%1", 0); \
	Account[playerid][%0] = %1;

forward EditAccount(playerid,fieldname[],value[MAX_PLAYER_NAME], finished);
THIS is working:
Code:
EditAccount(playerid,"Level","47", 0);
I dont know why it fails ...
Do not wonder about the string "47", it will be converted to an integer under EditAccount!

Here is the result, the "failing" query:
Code:
UPDATE spieler SET %0=0 WHERE SpielerID = 1
"EditAccount(playerid,"Level","47", 0);" will bring:
Code:
UPDATE spieler SET Level=47 WHERE SpielerID = 1
I Hope anyone can help me with this!
If more details are needed -> Say it here.

Greetz Kevin
Reply


Messages In This Thread
#define + Strings | Compiler do what it wants ... [SOLVED] - by Kevin54321 - 11.12.2012, 17:28
AW: #define + Strings | Compiler do what it wants ... - by Kevin54321 - 11.12.2012, 18:55
AW: Re: #define + Strings | Compiler do what it wants ... - by Kevin54321 - 11.12.2012, 19:42

Forum Jump:


Users browsing this thread: 2 Guest(s)