Help me pliz!
#1

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

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(playerid0);
                        
SetPlayerPos(playerid1598.2131,1172.3086,1025.3767); // izmaini uz savu respawn punktu,
                        
SetCameraBehindPlayer(playerid);
                        
TogglePlayerControllable(playerid,true);
            return 
1;
        }
        return 
1;

Reply
#2

Quote:
Originally Posted by ricardsvv
Посмотреть сообщение
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

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(playerid0);
                        
SetPlayerPos(playerid1598.2131,1172.3086,1025.3767); // izmaini uz savu respawn punktu,
                        
SetCameraBehindPlayer(playerid);
                        
TogglePlayerControllable(playerid,true);
            return 
1;
        }
        return 
1;

This is the right section for scripting help: http://forum.sa-mp.com/forumdisplay.php?f=12
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)