I Figured it out.
if (dbControlKey()==1)
{
cheatcds=1;
}
if (cheatcds==1)
{
dbText(0,0,"Enter Cheat Code ");
char* cheatcode;
cheatcode=dbInput();
if (_stricmp(cheatcode,"mcend")==0)
{
dbPositionCamera(1811,dbCameraPositionY(),4810);
}
if (_stricmp(cheatcode,"i want a ball")==0)
{
dbMakeObjectSphere(444,33,33,2);
dbPositionObject(444,dbCameraPositionX(),dbCameraPositionY(),dbCameraPositionZ());
}
cheatcds=0;
}
if (dbControlKey()==1)
{
cheatcds=1;
}
if (cheatcds==1)
{
dbText(0,0,"Enter Cheat Code ");
char* cheatcode;
cheatcode=dbInput();
if (_stricmp(cheatcode,"mcend")==0)
{
dbPositionCamera(1811,dbCameraPositionY(),4810);
}
if (_stricmp(cheatcode,"i want a ball")==0)
{
dbMakeObjectSphere(444,33,33,2);
dbPositionObject(444,dbCameraPositionX(),dbCameraPositionY(),dbCameraPositionZ());
}
cheatcds=0;
}
The quality of what a man gives without seeking anything in return shows his integrity.