31.05.2011, 21:58
I have this on top off script:
And i change the the code but same problem:
Код:
new donutcount[MAX_PLAYERS]=0; new istokendonut1[MAX_PLAYERS]=0; new istokendonut2[MAX_PLAYERS]=0;
Код:
if(pickupid==donut1) { if(istokendonut1[playerid]==0) { donutcount[playerid]++; new string[128]; GivePlayerMoney(playerid,1000); donutcount[playerid]++; format(string,sizeof(string),"Donut %d out of 50!",donutcount); //GameTextForPlayer(playerid,string,5000,5); istokendonut1[playerid]=1; return GameTextForPlayer(playerid, string, 5000, 5); } if(istokendonut1[playerid]==1) { SendClientMessage(playerid,COLOR_RED,"You already found this donut!"); } } if(pickupid==donut2) { if(istokendonut2[playerid]==0) { donutcount[playerid]++; new string[128]; GivePlayerMoney(playerid,1000); format(string,sizeof(string),"Donut %d out of 50!",donutcount); //GameTextForPlayer(playerid,string,5000,5); istokendonut2[playerid]=1; return GameTextForPlayer(playerid, string, 1000, 5); } if(istokendonut2[playerid]==1) { SendClientMessage(playerid,COLOR_RED,"You already found this donut!"); } }