24.07.2013, 11:23
(
Последний раз редактировалось Levtu; 25.07.2013 в 13:53.
)
Hello everyone.
I don't know why, when i use command:
50$ are taken from example 200$, but after few second is back and i still have 200$ instead of 150$
I'm not sure that's that codeline, so I attach GameMode as PWN.
What is the reason?
I don't know why, when i use command:
pawn Код:
GivePlayerMoney(playerid, -50);
pawn Код:
SetPlayerRandomSpawn(playerid);
if(!FirstSpawn[playerid]){
// ShowPlayerDialog(playerid, 4, DIALOG_STYLE_LIST, "Wybierz STYL WALKI , mozna zmienic komenda /StylWalki", "Normalny \n Karate \n Bokser \n Gangster", "Wybieram", "Anuluj");
TextDrawHideForPlayer(playerid,Powitanie[0]);
TextDrawHideForPlayer(playerid,Powitanie[1]);
TextDrawHideForPlayer(playerid,Powitanie[2]);
TextDrawHideForPlayer(playerid,Powitanie[3]);
TextDrawHideForPlayer(playerid,Powitanie[4]);
TextDrawHideForPlayer(playerid,Powitanie[5]);
TextDrawShowForPlayer(playerid,ReklamaTD);
TextDrawShowForPlayer(playerid,Zapisy[0]);
TextDrawShowForPlayer(playerid,Zapisy[1]);
TextDrawShowForPlayer(playerid,Zapisy[2]);
for(new x=0;x<10;x++){
TextDrawShowForPlayer(playerid,ZapisyBack[x]);
}
for(new x=0;x<10;x++){
TextDrawShowForPlayer(playerid,ZapisyBack[x]);
}
new str[25];
format(str,sizeof(str),"%d",playerid);
TextDrawSetString(PlayerPasek[playerid][0],str);
format(str,sizeof(str),"%s",PlayerName(playerid));
TextDrawSetString(PlayerPasek[playerid][1],str);
ShowPlayerPasek(playerid);
}
Freeze[playerid] = false;
GivePlayerMoney(playerid, 10000);
Money[playerid] += 10000;
FirstSpawn[playerid] = true;
return 1;
}
What is the reason?