if(dialogid == DIALOG_24SHOP)
{
if(response)
{
if(listitem == 0)
{
if(BizzInfo[4][bProducts] >=1)
{
new string[64];
GivePlayerMoney(playerid, -5000);
format(string, sizeof(string), "~r~-$%d", 5000);
GameTextForPlayer(playerid, string, 5000, 1);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "Navigationssystem gekauft.");
SendClientMessage(playerid, COLOR_GRAD4, string);
PlayerInfo[playerid][pNavigations] = 1;
BizzInfo[4][bTill] += 5000/2;
BizzInfo[4][bProducts] -=1;
}
else
{
SendClientMessage(playerid,COLOR_GRAD1,"Ausverkauft!");
}
}
Wie mach ich hier ne Scanf Abrage rein und frag ob er ein Navi schon hat wen ja das er keins mehr bekommt?