SA-MP Forums Archive
OMG I am sorry - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: OMG I am sorry (/showthread.php?tid=137826)



OMG I am sorry - DeaD_MaN - 30.03.2010

Код:
if(Kills[killerid] == 3)
    {
	   format(st,sizeof(st),"~W~%s IS DOMINATING!",Killername);
	   GameTextForAll(st,5000,4);
    }
    if(Kills[killerid] == 5)
    {
	   format(st,sizeof(st),"~W~%s IS ON A KILLING SPREE!",Killername);
	   GameTextForAll(st,5000,4);
    }
    if(Kills[killerid] == 8)
    {
	   format(st,sizeof(st),"~W~%s HAS A MONSTER KILL!!!",Killername);
	   GameTextForAll(st,5000,4);
    }
    if(Kills[killerid] == 11)
    {
	   format(st,sizeof(st),"~W~%s IS ~r~GODLIKE!",Killername);
	   GameTextForAll(st,5000,4);
    }
    if(Kills[killerid] == 15)
    {
	   format(st,sizeof(st),"~W~%s IS ~R~WICKED SICK!",Killername);
	   GameTextForAll(st,5000,4);
    }
    if(Kills[killerid] >= 18)
    {
	   format(st,sizeof(st),"~R~%s HOLY SHIT WITH %d KILLS!",Killername, Kills[killerid]);
	   GameTextForAll(st,5000,4);
    }
Help me!!


Re: OMG I am sorry - Mystique - 30.03.2010

Explain the problem further.


Re: OMG I am sorry - Flake. - 30.03.2010

Quote:
Originally Posted by Mystique
Explain the problem further.
yes becuase atm this looks like it would work fine.


Re: OMG I am sorry - DeaD_MaN - 30.03.2010

Public
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(Kill[killerid] == 3)
    {
	   format(st,sizeof(st),"~W~%s IS DOMINATING!",Killername);
	   GameTextForAll(st,5000,4);
    }
    if(Kills[killerid] == 5)
    {
	   format(st,sizeof(st),"~W~%s IS ON A KILLING SPREE!",Killername);
	   GameTextForAll(st,5000,4);
    }
    if(Kills[killerid] == 8)
    {
	   format(st,sizeof(st),"~W~%s HAS A MONSTER KILL!!!",Killername);
	   GameTextForAll(st,5000,4);
    }
    if(Kills[killerid] == 11)
    {
	   format(st,sizeof(st),"~W~%s IS ~r~GODLIKE!",Killername);
	   GameTextForAll(st,5000,4);
    }
    if(Kills[killerid] == 15)
    {
	   format(st,sizeof(st),"~W~%s IS ~R~WICKED SICK!",Killername);
	   GameTextForAll(st,5000,4);
    }
    if(Kills[killerid] >= 18)
    {
	   format(st,sizeof(st),"~R~%s HOLY SHIT WITH %d KILLS!",Killername, Kills[killerid]);
	   GameTextForAll(st,5000,4);
    }
  	return 1;
}
Errors:
Код:
C:\Documents and Settings\Admin\Рабочий стол\СЕРВ\gamemodes\bare.pwn(86) : error 017: undefined symbol "Kill"
C:\Documents and Settings\Admin\Рабочий стол\СЕРВ\gamemodes\bare.pwn(86) : warning 215: expression has no effect
C:\Documents and Settings\Admin\Рабочий стол\СЕРВ\gamemodes\bare.pwn(86) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Admin\Рабочий стол\СЕРВ\gamemodes\bare.pwn(86) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Admin\Рабочий стол\СЕРВ\gamemodes\bare.pwn(86) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.



Re: OMG I am sorry - DeaD_MaN - 30.03.2010

hey!!


Re: OMG I am sorry - Donny_k - 30.03.2010

Typo:

pawn Код:
if(Kill[killerid] == 3)
    {
Should be:

pawn Код:
if(Kills[killerid] == 3)
    {



Re: OMG I am sorry - Mystique - 30.03.2010

Seriously, this is really off topic but I just have to say it.. I thought Naruto4's signature was a real bug and I even tried to take it away from my screen xD


Re: OMG I am sorry - V1ceC1ty - 30.03.2010

Edited.


Re: OMG I am sorry - DeaD_MaN - 30.03.2010

Nice!
Thanks brothers for the answer
But here's another error
Код:
C:\Documents and Settings\Admin\Рабочий стол\СЕРВ\gamemodes\bare.pwn(89) : error 017: undefined symbol "st"
C:\Documents and Settings\Admin\Рабочий стол\СЕРВ\gamemodes\bare.pwn(89) : error 017: undefined symbol "st"
C:\Documents and Settings\Admin\Рабочий стол\СЕРВ\gamemodes\bare.pwn(89) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Admin\Рабочий стол\СЕРВ\gamemodes\bare.pwn(89) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.



Re: OMG I am sorry - Mr L - 30.03.2010

Add this

pawn Код:
new st[256];