04.09.2014, 10:31
(
Последний раз редактировалось Clad; 04.09.2014 в 11:09.
)
Not fixed, Never mind.
if (!strcmp("3", tmp, true)) if(Logged[playerid] == 1)
{
if(GetPlayerecard(playerid) > 3) return SendClientMessage(playerid,c_r,"( ! ) You lack the items required !");
//Code which gives Silver here works.
SaveBag(playerid);
ecardd[playerid] -= 3 // This code doesn't work, It doesn't take 3 ecard from the bag.
SendClientMessage(playerid,COLOR_GREEN,"( ! ) You have gotten 1 Silver medal !");
return 1;
}
// you can also use += for addition
// so ecardd[playerid] += 3 would add 3 "ecards"
#define GivePlayerecard(%0,%1) ecardd[%0] += (%1)
if (!strcmp("3", tmp, true)) { if(Logged[playerid] == 1) return SendClientMessage(playerid, -1,"( ! ) You aren't login !"); if(GetPlayerecard(playerid) > 3) return SendClientMessage(playerid,c_r,"( ! ) You lack the items required !"); //Code which gives Silver here works. SaveBag(playerid); GivePlayerecard(playerid,-3); // This code doesn't work, It doesn't take 3 ecard from the bag. SendClientMessage(playerid,COLOR_GREEN,"( ! ) You have gotten 1 Silver medal !"); return 1; }