public OnPlayerSpawn(playerid);
{ {
if(Dead[playerid] == 1);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 26, 990);
GivePlayerWeapon(playerid, 28, 990);
GivePlayerWeapon(playerid, 24, 990);
GivePlayerWeapon(playerid, 34, 990);
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid, 1412.639892, -1.787510, 1000.924377);
SetPlayerVirtualWorld(playerid, 1);
Dead[playerid] == 0;
}
return 1;
}
C:\Users\Administrator\Documents\C5 School\School 2.pwn(118) : error 055: start of function body without function header C:\Users\Administrator\Documents\C5 School\School 2.pwn(119) : error 010: invalid function or declaration C:\Users\Administrator\Documents\C5 School\School 2.pwn(121) : error 021: symbol already defined: "SetPlayerHealth" C:\Users\Administrator\Documents\C5 School\School 2.pwn(133) : error 010: invalid function or declaration
public OnPlayerSpawn(playerid);
{
if(Dead[playerid] == 1);
{
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 26, 990);
GivePlayerWeapon(playerid, 28, 990);
GivePlayerWeapon(playerid, 24, 990);
GivePlayerWeapon(playerid, 34, 990);
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid, 1412.639892, -1.787510, 1000.924377);
SetPlayerVirtualWorld(playerid, 1);
Dead[playerid] == 0;
}
return 1;
}
C:\Users\Administrator\Documents\C5 School\School2.pwn(11 : error 055: start of function body without function header C:\Users\Administrator\Documents\C5 School\School2.pwn(119) : error 010: invalid function or declaration C:\Users\Administrator\Documents\C5 School\School2.pwn(133) : error 010: invalid function or declaration |
public OnPlayerSpawn(playerid);
{
if(Dead[playerid] == 1)
{
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 26, 990);
GivePlayerWeapon(playerid, 28, 990);
GivePlayerWeapon(playerid, 24, 990);
GivePlayerWeapon(playerid, 34, 990);
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid, 1412.639892, -1.787510, 1000.924377);
SetPlayerVirtualWorld(playerid, 1);
Dead[playerid] = 0;
}
return 1;
}
public OnPlayerSpawn(playerid){
if(Dead[playerid] == 1){
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 26, 990);
GivePlayerWeapon(playerid, 28, 990);
GivePlayerWeapon(playerid, 24, 990);
GivePlayerWeapon(playerid, 34, 990);
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid, 1412.639892, -1.787510, 1000.924377);
SetPlayerVirtualWorld(playerid, 1);
Dead[playerid] = 0;
}
return 1;
}