Small Help here.. - 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)
+--- Thread: Small Help here.. (
/showthread.php?tid=508633)
Small Help here.. -
forgottenkings - 23.04.2014
The Error 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);
}
Re: Small Help here.. -
iBanner - 23.04.2014
I think you are using 2 stocks of name. So by adding the second one to something like
name2. or show your stock for name
Re: Small Help here.. -
forgottenkings - 23.04.2014
here it is
Re: Small Help here.. -
iBanner - 23.04.2014
Quote:
Originally Posted by forgottenkings
here it is
|
Can you show the (stock for name)
Do search for it doing ctrl+f then type
stock name
Can you please show the line for 896
EDIT: Okay no problem.
Re: Small Help here.. -
forgottenkings - 23.04.2014
Changed The Stock name
Anyway Tnx its Fixed