EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Archive::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=621)
-   -   Dumb Question Time (https://www.eqemulator.org/forums/showthread.php?t=4587)

mByte 01-03-2003 09:48 PM

Dumb Question Time
 
Ok forsome reason I forgot how to do this in C

I want to convert struct* to const char* how?

ie

bool SaveSpawn(spawn_struct* sStruct){

const char* SN = sStruct->name;

RunQuery(query, MakeAnyLenString(&query, "INSERT INTO npc_types (name) values('%s')", SN);

}

Error is
'cannot convert parameter 1 from 'const char *' to 'Spawn_Struct *'

I did this before in the last release but pc crashed few weeks ago, before i could get anything documented.

its very late so im going to hit the sack maybe it will come back to me.

mByte 01-03-2003 09:55 PM

nm
 
Figured it out hit me as I was closing, I was passing the const char* when i needed to pass it as a char[64]

disreguard this.


All times are GMT -4. The time now is 04:52 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.