02.08.2015, 00:08
D:\Users\User\Desktop\Samp gm\gamemodes\samprplve.pwn(9865) : error 029: invalid expression, assumed zero
D:\Users\User\Desktop\Samp gm\gamemodes\samprplve.pwn(9866) : error 028: invalid subscript (not an array or too many subscripts): "AfterLifeTimer"
D:\Users\User\Desktop\Samp gm\gamemodes\samprplve.pwn(9866) : error 001: expected token: ";", but found "]"
D:\Users\User\Desktop\Samp gm\gamemodes\samprplve.pwn(9866) : error 029: invalid expression, assumed zero
D:\Users\User\Desktop\Samp gm\gamemodes\samprplve.pwn(9866) : fatal error 107: too many error messages on one line
D:\Users\User\Desktop\Samp gm\gamemodes\samprplve.pwn(9866) : error 028: invalid subscript (not an array or too many subscripts): "AfterLifeTimer"
D:\Users\User\Desktop\Samp gm\gamemodes\samprplve.pwn(9866) : error 001: expected token: ";", but found "]"
D:\Users\User\Desktop\Samp gm\gamemodes\samprplve.pwn(9866) : error 029: invalid expression, assumed zero
D:\Users\User\Desktop\Samp gm\gamemodes\samprplve.pwn(9866) : fatal error 107: too many error messages on one line
PHP код:
public AfterLife(playerid)
{
IsAfterLifing[playerid] = 1;
SecsToGo[playerid]--;
new string[128];
format(string,sizeof(string),"~b~ ~h~ ~h~Tu esi bezsamanja~n~ ~b~ ~h~ ~h~Atgriezisies pie samanas pec %d sekundem",SecsToGo[playerid]);
GameTextForPlayer(playerid,string,1100,3);
if (SecsToGo[playerid] <= 0)
{
CleanPlayerChat(playerid);
KillTimer(AfterLifeTimer[playerid]);
SCM(playerid,COLOR_RED,"--------------------------------------------------------");
SCM(playerid,WHITE,"Pec ilgaka laika esi atgriezies starp dzivajiem.");
SCM(playerid,WHITE,"Mediki tevi izarsteja un tagad tu juties labi.");
SCM(playerid,WHITE,"Visi ieroci un narkotikas tika konfiscetas.");
SCM(playerid,COLOR_RED,"--------------------------------------------------------");
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid, 1598.2131,1172.3086,1025.3767); // izmaini uz savu respawn punktu,
SetCameraBehindPlayer(playerid);
TogglePlayerControllable(playerid,true);
return 1;
}
return 1;
}