Quote:
Originally Posted by ToPhrESH
Quote:
Originally Posted by Joe Torran C
Quote:
Originally Posted by ToPhrESH
Quote:
Originally Posted by iLinx
Код:
TalibanKills++;
Rebelkills++;
Theres no space in between the variable and the operator if you want to use the postfix increment operator.
|
still errors
|
By the looks of things your editing my TDM? Anyway..
(By the textdraw thing & the kills ++)
Anyway try this:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason) { if(IsPlayerConnected(killerid)) { if(GetPlayerTeam(killerid) == 1) { RebelKills ++; } else if (GetPlayerTeam(killerid) == 2) { TalibanKills ++; } if (GetPlayerTeam(killerid) == GetPlayerTeam(playerid)) { SendClientMessage(playerid, 0x008000FF, "Do not spawnkill! You have been punished"); GivePlayerMoney(killerid,-1000); SetPlayerHealth(killerid, 0.0); SetPlayerScore(killerid, GetPlayerScore(playerid) -1); } else { GivePlayerMoney(killerid, 1500); SendClientMessage(killerid, 0x008000FF, "You killed an enemy! You earn +2 score and some ammo!"); SetPlayerScore(killerid, GetPlayerScore(playerid) +2); } } return 1; }
|
Im not copying yours a friend of mine asked me if i could help him figure this out. Hecouldnt figure it out so he sent me it. Sorry if he is ill tell him to stop..... Also the thing you gave me was the same thing i had scripted
|
No hes not copying, I released it, Hes fine to edit it.
And i moved a bracket on the code