SA-MP Forums Archive
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 219local variable "name" shadows a variable at a preceding level
J
:\Ultimate Kerala Gaming!!\Fort Carison (Sa-Mp )\gamemodes\thefort.pwn(896) : error 012invalid function callnot a valid address
J
:\Ultimate Kerala Gaming!!\Fort Carison (Sa-Mp )\gamemodes\thefort.pwn(896) : warning 215expression has no effect
J
:\Ultimate Kerala Gaming!!\Fort Carison (Sa-Mp )\gamemodes\thefort.pwn(896) : error 001expected token";"but found ")"
J:\Ultimate Kerala Gaming!!\Fort Carison (Sa-Mp )\gamemodes\thefort.pwn(896) : error 029invalid expressionassumed zero
J
:\Ultimate Kerala Gaming!!\Fort Carison (Sa-Mp )\gamemodes\thefort.pwn(896) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB 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