==> OnPlayerDeath Help!<==
#7

@Iron3man, I'm getting some errors:

pawn Код:
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(93) : warning 217: loose indentation
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(103) : warning 217: loose indentation
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(105) : warning 217: loose indentation
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(105) : error 029: invalid expression, assumed zero
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(105) : error 017: undefined symbol "spawn"
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(106) : error 029: invalid expression, assumed zero
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(106) : error 017: undefined symbol "spawn"
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(113) : warning 225: unreachable code
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(113) : error 029: invalid expression, assumed zero
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(113) : error 004: function "OnVehicleSpawn" is not implemented
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(118) : warning 225: unreachable code
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(118) : error 029: invalid expression, assumed zero
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(118) : error 004: function "OnVehicleDeath" is not implemented
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(123) : warning 225: unreachable code
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(123) : error 029: invalid expression, assumed zero
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(123) : error 004: function "OnPlayerText" is not implemented
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(128) : warning 225: unreachable code
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(128) : error 029: invalid expression, assumed zero
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(128) : error 004: function "OnPlayerCommandText" is not implemented
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(130) : error 017: undefined symbol "cmdtext"
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(135) : warning 217: loose indentation
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(135) : error 017: undefined symbol "cmdtext"
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(152) : error 017: undefined symbol "cmdtext"
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(162) : error 017: undefined symbol "cmdtext"
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(169) : error 017: undefined symbol "cmdtext"
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(177) : error 017: undefined symbol "cmdtext"
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(185) : error 017: undefined symbol "cmdtext"
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(193) : error 017: undefined symbol "cmdtext"
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(205) : warning 217: loose indentation
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(205) : error 017: undefined symbol "cmdtext"
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(218) : error 017: undefined symbol "cmdtext"
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(230) : error 017: undefined symbol "cmdtext"
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(236) : warning 217: loose indentation
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(236) : error 017: undefined symbol "cmdtext"
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(242) : warning 217: loose indentation
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(245) : warning 225: unreachable code
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(245) : error 029: invalid expression, assumed zero
C:\Users\Sami\Desktop\samp03x_svr_R2_win32\gamemodes\RPtest.pwn(245) : error 004: function "OnPlayerEnterVehicle" is not implemented

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
And here's my code, not sure if I did something wrong though:

pawn Код:
main()

{
    print("\n----------------------------------");
    print(" RPtest ");
    print("----------------------------------\n");
}




#endif
new InHospital[MAX_PLAYERS];
new Job[256];
new Job2[256];
new Job3[256];
new Job4[256];

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    InHospital[playerid] = 1;
    if(InHospital[playerid] == 1)
    {
        SetPlayerPos(playerid , -320.0716 , 1049.2888 , 20.3403);
        SetTimer( "spawn" , 5000 , 0);
    return 1;
}
forward spawn(playerid);
public spawn(playerid)
{
   InHospital[playerid] = 0;
   SpawnPlayer(playerid);
   return 1;
}
Reply


Messages In This Thread
==> OnPlayerDeath Help!<== - by Heisenbergx2 - 06.10.2013, 13:21
Re: ==> OnPlayerDeath Help!<== - by Konstantinos - 06.10.2013, 13:23
Re: ==> OnPlayerDeath Help!<== - by Matnix - 06.10.2013, 13:37
Re: ==> OnPlayerDeath Help!<== - by Iron3man - 06.10.2013, 13:58
Re: ==> OnPlayerDeath Help!<== - by Heisenbergx2 - 06.10.2013, 14:01
Re: ==> OnPlayerDeath Help!<== - by Iron3man - 06.10.2013, 14:05
Re: ==> OnPlayerDeath Help!<== - by Heisenbergx2 - 06.10.2013, 14:08
Re: ==> OnPlayerDeath Help!<== - by Iron3man - 06.10.2013, 14:12
Re: ==> OnPlayerDeath Help!<== - by QuaTTrO - 06.10.2013, 14:12
Re: ==> OnPlayerDeath Help!<== - by Heisenbergx2 - 06.10.2013, 14:17

Forum Jump:


Users browsing this thread: 1 Guest(s)