PDA

View Full Version : Help me fix Errors!


ricardsvv
02/08/2015, 02:30 PM
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

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;
}

xVIP3Rx
02/08/2015, 03:25 PM
Which lines are 9865/9866
AND
how do you declare "AfterLifeTimer" ?

ricardsvv
02/08/2015, 03:38 PM
I fixed all and tanx for help!