here i used _(kbhit()) func and yes it works well in a win32 app
[shcode=cpp]
int main()
{
bool _IsRunning = true;
while (_IsRunning)
{
_SA->LoadSAMP();
_SA->IsAvailable();
// comenzi
_IsRunning = false;
}
bool isKeyboardPressed = true;
while (isKeyboardPressed)
{
if (_kbhit())
{
char keyParam;
int valueParam;
keyParam = _getch();
valueParam = keyParam;
if (valueParam == 32)
{
_SA -> AddClientMessage(0xFFFFFF, "Test");
}
}
}
[/shcode]
another question is how can i see all the lines between every "{" and "}" so i can know which one belong (i saw this func on 2k17 vs , hope this is in 2k15 )
ex:
[shcode=cpp]while(true)
{
| if !bou
| {
| | //statement
| | //
| }
}
[/shcode]
[shcode=cpp]
int main()
{
bool _IsRunning = true;
while (_IsRunning)
{
_SA->LoadSAMP();
_SA->IsAvailable();
// comenzi
_IsRunning = false;
}
bool isKeyboardPressed = true;
while (isKeyboardPressed)
{
if (_kbhit())
{
char keyParam;
int valueParam;
keyParam = _getch();
valueParam = keyParam;
if (valueParam == 32)
{
_SA -> AddClientMessage(0xFFFFFF, "Test");
}
}
}
[/shcode]
another question is how can i see all the lines between every "{" and "}" so i can know which one belong (i saw this func on 2k17 vs , hope this is in 2k15 )
ex:
[shcode=cpp]while(true)
{
| if !bou
| {
| | //statement
| | //
| }
}
[/shcode]
Last edited: