23.04.2014, 07:05
The Error is
The Code Is
PHP код:
J:\Ultimate Kerala Gaming!!\pawno\include\sscanf2.inc(199) : warning 219: local variable "name" shadows a variable at a preceding level
J:\Ultimate Kerala Gaming!!\Fort Carison (Sa-Mp )\gamemodes\thefort.pwn(896) : error 012: invalid function call, not a valid address
J:\Ultimate Kerala Gaming!!\Fort Carison (Sa-Mp )\gamemodes\thefort.pwn(896) : warning 215: expression has no effect
J:\Ultimate Kerala Gaming!!\Fort Carison (Sa-Mp )\gamemodes\thefort.pwn(896) : error 001: expected token: ";", but found ")"
J:\Ultimate Kerala Gaming!!\Fort Carison (Sa-Mp )\gamemodes\thefort.pwn(896) : error 029: invalid expression, assumed zero
J:\Ultimate Kerala Gaming!!\Fort Carison (Sa-Mp )\gamemodes\thefort.pwn(896) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
The Code Is
pawn Код:
if(Spree[killerid] == 5)//Checking for 5 kills
{
format(zstring, sizeof(zstring), "%s is on a killing spree of %d kills. Junior Killer!", Name(killerid), Spree[killerid]);
SendClientMessageToAll(blue, zstring);
SendClientMessage(killerid, green, "You are on a killing spree of 5 kills. +4 score");
SetPlayerScore(killerid, GetPlayerScore(killerid)+4);
}
else if(Spree[killerid] == 10)//For 10 kills
{
format(zstring, sizeof(zstring), "%s is on a killing spree of %d kills. Senior Killer!", Name(killerid), Spree[killerid]);
SendClientMessageToAll(blue, zstring);
SendClientMessage(killerid, green, "You are on a killing spree of 10 kills. +8 score");
SetPlayerScore(killerid, GetPlayerScore(killerid)+8);
}
else if(Spree[killerid] == 15)//30 kills
{
format(zstring, sizeof(zstring), "%s is on a killing spree of %d kills. Master Killer!", Name(killerid), Spree[killerid]);
SendClientMessageToAll(blue, zstring);
SendClientMessage(killerid, green, "You are on a killing spree of 15 kills. +12 score");
SetPlayerScore(killerid, GetPlayerScore(killerid)+12);
}