Detaljan opis problema: kada kucam /money npr /money 1 1000 on savi novac na 1000 i nakon 1 sekunde opet vrati na 0....moze ko pomoc
Dio skripte:
Quote
if(strcmp(cmd, "/money", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /money [playerID/DeoImena] ");
return 1;
}
new playa;
new money;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
money = strval(tmp);
if (PlayerInfo >= 133😎
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
SafeResetPlayerMoney(playa);
SafeGivePlayerMoney(playa, money);
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), ": %s has set %s (%d)'s money to $%d.", sendername,giveplayer,playa,money);
ABroadCast(COLOR_LIGHTRED,string, 5);
format(string, sizeof(string), "** Succesfuly Set %s Money to %d", giveplayer,money);
SendClientMessage(playerid, COLOR_ORANGE, string);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has Set %s's Money to %d",d,m,y,h,mi,s,sendername,giveplayer,money);
GiveLog(string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "** Niste ovlasceni da koristite tu komandu!");
}
}
return 1;
}
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /money [playerID/DeoImena] ");
return 1;
}
new playa;
new money;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
money = strval(tmp);
if (PlayerInfo >= 133😎
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
SafeResetPlayerMoney(playa);
SafeGivePlayerMoney(playa, money);
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), ": %s has set %s (%d)'s money to $%d.", sendername,giveplayer,playa,money);
ABroadCast(COLOR_LIGHTRED,string, 5);
format(string, sizeof(string), "** Succesfuly Set %s Money to %d", giveplayer,money);
SendClientMessage(playerid, COLOR_ORANGE, string);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has Set %s's Money to %d",d,m,y,h,mi,s,sendername,giveplayer,money);
GiveLog(string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "** Niste ovlasceni da koristite tu komandu!");
}
}
return 1;
}
Neke slike/video za lakse dobivanje pomoci(neobavezno): /
Molim vas pomozite....moze ts3 ili skype ili teamwiver bilo sta samoooo pomoc!!!
