03.02.2010, 20:36
Hello,
I need help with Ranking system, I want to add it to LS:TWSE gamemode...
This is what I tried...
But when I try to compile it I get this error
On every line where it says if(PlayerInfo[playerid][ pScore ]
Please can you help me to solve this, also if not a problem...
Can you tell me how to make textdraw to show player for each rank under health bar and money;
Baby Killer;
Killer;
Serial Killer;
Professional Killer;
Killing Machine;
God of War;
-----------------------------
I need it as soon as possible, please help me!!!
I need help with Ranking system, I want to add it to LS:TWSE gamemode...
This is what I tried...
Код:
if(PlayerInfo[playerid][ pScore ] >= 0 && (PlayerInfo[playerid][ pScore ] <=49 ) { // Baby Killer SetPlayerHealth(playerid, 50.0); GivePlayerWeapon(playerid, 22, 300); GivePlayerWeapon(playerid, 17, 500); } else if(PlayerInfo[playerid][ pScore ] >= 50 && (PlayerInfo[playerid][ pScore ] <= 199) { // Killer SetPlayerHealth(playerid, 60.0); SetPlayerArmour(playerid, 15.0); GivePlayerWeapon(playerid, 23, 300); GivePlayerWeapon(playerid, 17, 500); GivePlayerWeapon(playerid, 5, 1); } else if(PlayerInfo[playerid][ pScore ] >= 200 && (PlayerInfo[playerid][ pScore ] <= 499) { // Serial Killer SetPlayerHealth(playerid, 70.0); SetPlayerArmour(playerid, 25.0); GivePlayerWeapon(playerid, 24, 150); GivePlayerWeapon(playerid, 5, 1); } else if(PlayerInfo[playerid][ pScore ] >= 500 && (PlayerInfo[playerid][ pScore ] <= 999) { // Professional Killer SetPlayerHealth(playerid, 80.0); SetPlayerArmour(playerid, 50.0); GivePlayerWeapon(playerid, 29, 200); GivePlayerWeapon(playerid, 24, 150); } else if(PlayerInfo[playerid][ pScore ] >= 1000 && (PlayerInfo[playerid][ pScore ] <= 1999) { // Killing Machine SetPlayerHealth(playerid, 90.0); SetPlayerArmour(playerid, 75.0); GivePlayerWeapon(playerid, 34, 100); GivePlayerWeapon(playerid, 24, 300); } else if(PlayerInfo[playerid][ pScore ] >= 2000) { // God of War SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); GivePlayerWeapon(playerid, 27, 100); GivePlayerWeapon(playerid, 24, 500); GivePlayerWeapon(playerid, 31, 500); } return 1; }
Код:
error 010: invalid function or declaration
Please can you help me to solve this, also if not a problem...
Can you tell me how to make textdraw to show player for each rank under health bar and money;
Baby Killer;
Killer;
Serial Killer;
Professional Killer;
Killing Machine;
God of War;
-----------------------------
I need it as soon as possible, please help me!!!
