PDA

View Full Version : Little Problem


Windrush
15/09/2012, 12:58 PM
public OnPlayerSpawn(playerid)
{
//================================================== ==========================\\
if(GetPlayerScore(playerid) >= 0 && GetPlayerScore(playerid) <= 99)
{
SendClientMessage(playerid, green,"Your Rank Is Trainee You Don't have enough Score To Claim Reward");
return 1;
}

if(GetPlayerScore(playerid) >= 100 && GetPlayerScore(playerid) <= 199)
{
SetPlayerHealth(playerid, 999999.000);
SetTimerEx("DisableGod", 3, false, "i", playerid);
SendClientMessage(playerid, green,"Your Rank Is Private You Will have 3 Second Spawn Kill Protection");
return 1;
}

if(GetPlayerScore(playerid) >= 200 && GetPlayerScore(playerid) <= 299)
{
SetPlayerHealth(playerid, 999999.000);
SetTimerEx("DisableGod", 5, false, "i", playerid);
SendClientMessage(playerid, green,"Your Rank Is PFC You Will have 5 Second Spawn Kill Protection");
return 1;
}

if(GetPlayerScore(playerid) >= 300 && GetPlayerScore(playerid) <= 499)
{
SetPlayerHealth(playerid, 999999.000);
SetTimerEx("DisableGod", 7, false, "i", playerid);
SendClientMessage(playerid, green,"Your Rank Is Corporal You Will have 7 Second Spawn Kill Protection");
return 1;
}

if(GetPlayerScore(playerid) >= 500 && GetPlayerScore(playerid) <= 599)
{
SetPlayerHealth(playerid, 999999.000);
SetTimerEx("DisableGod", 10, false, "i", playerid);
SendClientMessage(playerid, green,"Your Rank Is Sergeant You Will have 10 Second Spawn Kill Protection");
return 1;
}

if(GetPlayerScore(playerid) >= 600 && GetPlayerScore(playerid) <= 699)
{
SetPlayerHealth(playerid, 999999.000);
SetTimerEx("DisableGod", 10, false, "i", playerid);
SetPlayerArmour(playerid,25);
SendClientMessage(playerid, green,"Your Rank Is Staff Sergeant You Will have 10 Second Spawn Kill Protection And 25% Armour Bonus");
return 1;
}

if(GetPlayerScore(playerid) >= 700 && GetPlayerScore(playerid) <= 799)
{
SetPlayerHealth(playerid, 999999.000);
SetTimerEx("DisableGod", 7, false, "i", playerid);
SetPlayerArmour(playerid,50);
SendClientMessage(playerid, green,"Your Rank Is SFC You Will have 10 Second Spawn Kill Protection And 50% Armour Bonus");
return 1;
}

if(GetPlayerScore(playerid) >= 800 && GetPlayerScore(playerid) <= 899)
{
SetPlayerHealth(playerid, 999999.000);
SetTimerEx("DisableGod", 7, false, "i", playerid);
SetPlayerArmour(playerid,75);
SendClientMessage(playerid, green,"Your Rank Is Master Sergeant You Will have 10 Second Spawn Kill Protection And 75% Armour Bonus");
return 1;
}

if(GetPlayerScore(playerid) >= 900 && GetPlayerScore(playerid) <= 999)
{
SetPlayerHealth(playerid, 999999.000);
SetTimerEx("DisableGod", 7, false, "i", playerid);
SetPlayerArmour(playerid,100);
SendClientMessage(playerid, green,"Your Rank Is First Lieutenant You Will have 10 Second Spawn Kill Protection And 100% Armour Bonus");
return 1;
}

if(GetPlayerScore(playerid) >= 1000 && GetPlayerScore(playerid) <= 1199)
{
SetPlayerHealth(playerid, 999999.000);
SetTimerEx("DisableGod", 7, false, "i", playerid);
SetPlayerArmour(playerid,100);
SendClientMessage(playerid, green,"Your Rank Is Second Lieutenant You Will have 10 Second Spawn Kill Protection And 100% Armour Bonus");
return 1;
}

if(GetPlayerScore(playerid) >= 1200 && GetPlayerScore(playerid) <= 1399)
{
SetPlayerHealth(playerid, 999999.000);
SetTimerEx("DisableGod", 7, false, "i", playerid);
SetPlayerArmour(playerid,100);
GivePlayerWeapon(playerid, 24, 1000);
SendClientMessage(playerid, green,"Your Rank Is Captain You Will have 10 Second Spawn Kill Protection, 100% Armour Bonus, and Deagle +Ammo");
return 1;
}

if(GetPlayerScore(playerid) >= 1400 && GetPlayerScore(playerid) <= 1599)
{
SetPlayerHealth(playerid, 999999.000);
SetTimerEx("DisableGod", 7, false, "i", playerid);
SetPlayerArmour(playerid,100);
GivePlayerWeapon(playerid, 24, 1000);
GivePlayerWeapon(playerid, 8, 1000);
SendClientMessage(playerid, green,"Your Rank Is Major You Will have 10 Second Spawn Kill Protection, 100% Armour Bonus,Deagle ,Katana");
return 1;
}

if(GetPlayerScore(playerid) >= 1600 && GetPlayerScore(playerid) <= 1799)
{
SetPlayerHealth(playerid, 999999.000);
SetTimerEx("DisableGod", 7, false, "i", playerid);
SetPlayerArmour(playerid,100);
GivePlayerWeapon(playerid, 24, 707);
GivePlayerWeapon(playerid, 8, 1000);
GivePlayerWeapon(playerid, 18, 24);
SendClientMessage(playerid, green,"Your Rank Is Lieutenant Colonel You Will have 10 Second Spawn Kill Protection, 100% Armour Bonus,Deagle, Katana ,And Molotov");
return 1;
}

if(GetPlayerScore(playerid) >= 1800 && GetPlayerScore(playerid) <= 2499)
{
SetPlayerHealth(playerid, 999999.000);
SetTimerEx("DisableGod", 7, false, "i", playerid);
SetPlayerArmour(playerid,100);
GivePlayerWeapon(playerid, 24, 707);
GivePlayerWeapon(playerid, 8, 1000);
GivePlayerWeapon(playerid, 18, 400);
SendClientMessage(playerid, green,"Your Rank Is Brigadier General You Will have 10 Second Spawn Kill Protection, 100% Armour Bonus, Deagle, Katana ,And Molotov +Ammo");
return 1;
}

if(GetPlayerScore(playerid) >= 2500 && GetPlayerScore(playerid) <= 2999)
{
SetPlayerHealth(playerid, 999999.000);
SetTimerEx("DisableGod", 7, false, "i", playerid);
SetPlayerArmour(playerid,100);
GivePlayerWeapon(playerid, 24, 707);
GivePlayerWeapon(playerid, 8, 400);
GivePlayerWeapon(playerid, 18, 400);
SendClientMessage(playerid, green,"Your Rank Is Major General You Will have 10 Second Spawn Kill Protection, 100% Armour Bonus, and Deagle");
return 1;
}

if(GetPlayerScore(playerid) >= 3000 && GetPlayerScore(playerid) <= 3999)
{
SetPlayerHealth(playerid, 999999.000);
SetTimerEx("DisableGod", 7, false, "i", playerid);
SetPlayerArmour(playerid,100);
GivePlayerWeapon(playerid, 24, 707);
GivePlayerWeapon(playerid, 9, 400);
GivePlayerWeapon(playerid, 18, 400);
SendClientMessage(playerid, green,"Your Rank Is Lieutenant General You Will have 10 Second Spawn Kill Protection, 100% Armour Bonus, Deagle, Chainsaw ,And Molotov");
return 1;
}

if(GetPlayerScore(playerid) >= 4000 && GetPlayerScore(playerid) <= 9999)
{
SetPlayerHealth(playerid, 999999.000);
SetTimerEx("DisableGod", 7, false, "i", playerid);
SetPlayerArmour(playerid,100);
GivePlayerWeapon(playerid, 24, 707);
GivePlayerWeapon(playerid, 9, 400);
GivePlayerWeapon(playerid, 18, 400);
GivePlayerWeapon(playerid, 29, 500);
SendClientMessage(playerid, green,"Your Rank Is General You Will have 10 Second Spawn Kill Protection, 100% Armour Bonus, Deagle, Chainsaw ,Molotov, MP5");
return 1;
}

if(GetPlayerScore(playerid) >= 10000)
{
SetPlayerHealth(playerid, 999999.000);
SetTimerEx("DisableGod", 7, false, "i", playerid);
SetPlayerArmour(playerid,100);
GivePlayerWeapon(playerid, 24, 707);
GivePlayerWeapon(playerid, 9, 400);
GivePlayerWeapon(playerid, 18, 400);
GivePlayerWeapon(playerid, 29, 500);
GivePlayerWeapon(playerid, 31, 500);
GivePlayerWeapon(playerid, 38, 500);
SendClientMessage(playerid, green,"Your Rank Is Marshal You Will have 10 Second Spawn Kill Protection, 100% Armour Bonus, and Deagle, MP5, M4A1, SawnOff ShotGun, Chainsaw, And Minigun ");
return 1;
}

C:\Users\carlo\Desktop\SA-MP Server\RolePlay\gamemodes\SATDM_v11.pwn(10393) : error 049: invalid line continuation

HuSs3n
15/09/2012, 01:02 PM
which line is 10393

Windrush
15/09/2012, 01:17 PM
if(GetPlayerScore(playerid) >= 0 && GetPlayerScore(playerid) <= 99)

HuSs3n
15/09/2012, 01:33 PM
remove

//================================================== ==========================\\


and it will be fine ;)

Wesley221
15/09/2012, 01:35 PM
Only thing you have to remove at this line:

//================================================== ==========================\\

Are the '\\'.