04.05.2015, 05:31
Okay when i go to compile this peace of code i get these Errors IDK what to do i been searching for about 2 hours and cant find nun
Код:
public AfterDeath(playerid) { for(new i=0;i<MAX_PLAYERS;i++) { SetPlayerPos(playerid, DeathPosX[playerid], DeathPosY[playerid], DeathPosZ[playerid]); ApplyAnimation(playerid,"CRACK","crckdeth1",4.1,1,1,1,1,1,1); } GameTextForPlayer(playerid, "~r~Injured~n~~w~Please Call the EMS /service EMS", 5000, 3); new Float:HISCHP; GetPlayerHealth(playerid, HISCHP); SetPlayerHealth(playerid, HISCHP-5); if(HISCHP < 12.0) { PlayerInfo[playerid][pHospital] = 1; KillTimer(death_timer[playerid]); SetPlayerSpawn(playerid); } } return 1; } if(newstate == PLAYER_STATE_WASTED) //PLAYER DIES { if(PlayerInfo[playerid][pJailed] == 0) { new Float:DX; new Float:DY; new Float:DZ; GetPlayerPos(playerid, DX, DY, DZ); DeathPosX[playerid] = DX; DeathPosY[playerid] = DY; DeathPosZ[playerid] = DZ; death_timer[playerid] = SetTimer("AfterDeath", 7000, 1); } } return 1; }
Код:
C:\Users\User\Desktop\Server Stuff\PLA work\gamemodes\LAC.pwn(19268) : error 029: invalid expression, assumed zero C:\Users\User\Desktop\Server Stuff\PLA work\gamemodes\LAC.pwn(19268) : warning 215: expression has no effect C:\Users\User\Desktop\Server Stuff\PLA work\gamemodes\LAC.pwn(19268) : error 001: expected token: ";", but found "]" C:\Users\User\Desktop\Server Stuff\PLA work\gamemodes\LAC.pwn(19268) : error 029: invalid expression, assumed zero C:\Users\User\Desktop\Server Stuff\PLA work\gamemodes\LAC.pwn(19268) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.