08.03.2014, 00:12
I need help since, i was going to create a new hospital on Dillimore by copy the info of County General and change the coordinates but the line of the last else when i copied it, says an error like error 029: invalid expression, assumed zero
THE RED ELSE ITS THE WRONG
Код:
public SetPlayerInHospital(playerid) { if(IsPlayerConnected(playerid)) { new string[128]; new sendername[MAX_PLAYER_NAME]; GetPlayerNameEx(playerid, sendername, sizeof(sendername)); new rand = random(sizeof(HospitalSpawns)); if(rand == 0) { SetPlayerPos(playerid, 1192.256836, -1304.637939, 7.0000); SetPlayerCameraPos(playerid, 1192.256836, -1304.637939, 20.699181); SetPlayerCameraLookAt(playerid, 1171.727905, -1328.805542, 14.894935); if(PlayerInfo[playerid][pWantedLevel] > 0) { SendClientMessage(playerid,COLOR_YELLOW,"The Los Santos Police Department has been informed of your current location."); SendCopMessage(TEAM_BLUE_COLOR, "HQ: All Units APB: Reporter: All Saints Hospital Staff"); format(string, sizeof(string), "HQ: Crime: Unknown, Suspect: %s",sendername); SendCopMessage(TEAM_BLUE_COLOR, string); } } else { SetPlayerPos(playerid, 2012.323608, -1436.354370, 5.0000); SetPlayerCameraPos(playerid, 2012.323608, -1436.354370, 18.774065); SetPlayerCameraLookAt(playerid, 2035.060791, -1401.319824, 19.045776); if(PlayerInfo[playerid][pWantedLevel] > 0) { SendClientMessage(playerid,COLOR_YELLOW,"The Los Santos Police Department has been informed of your current location."); SendCopMessage(TEAM_BLUE_COLOR, "HQ: All Units APB: Reporter: County General Hospital Staff"); format(string, sizeof(string), "HQ: Crime: Unknown, Suspect: %s",sendername); SendCopMessage(TEAM_BLUE_COLOR, string); } } else { SetPlayerPos(playerid, 851.4866,-602.8960,18.4219,358.9967); SetPlayerCameraPos(playerid, 841.6047,-570.2173,21.1877,203.5901); SetPlayerCameraLookAt(playerid, 841.6047,-570.2173,21.1877,203.5901); if(PlayerInfo[playerid][pWantedLevel] > 0) { SendClientMessage(playerid,COLOR_YELLOW,"The Los Santos Police Department has been informed of your current location."); SendCopMessage(TEAM_BLUE_COLOR, "HQ: All Units APB: Reporter: Dillimore Hospital Staff"); format(string, sizeof(string), "HQ: Crime: Unknown, Suspect: %s",sendername); SendCopMessage(TEAM_BLUE_COLOR, string); } }