OMG I am sorry
#1

Код:
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!!
Reply
#2

Explain the problem further.
Reply
#3

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

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.
Reply
#5

hey!!
Reply
#6

Typo:

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

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

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
Reply
#8

Edited.
Reply
#9

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.
Reply
#10

Add this

pawn Код:
new st[256];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)