Whats wrong - 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: Whats wrong (
/showthread.php?tid=204926)
delete -
Tutrix - 30.12.2010
Re: Whats wrong -
Tutrix - 30.12.2010
And i have tried to delete "else" if CODE
But it dosent work in game either then.
Re: Whats wrong -
_rAped - 30.12.2010
You now you are calling brassknuckes underneath Katana?
Re: Whats wrong -
Tutrix - 30.12.2010
yea? why
Re: Whats wrong -
Tutrix - 30.12.2010
I fixed the errors, but i cant create the guns. I can create the knife, but not the other ones!
Re: Whats wrong -
_rAped - 30.12.2010
Quote:
Originally Posted by Tutrix
I fixed the errors, but i cant create the guns. I can create the knife, but not the other ones!
|
You know you are giving them one bullet?
Re: Whats wrong -
WillyP - 30.12.2010
Quote:
Originally Posted by _rAped
You know you are giving them one bullet?
|
Yes... You can't have 1337 knives, only 1.
Re: Whats wrong -
admantis - 30.12.2010
Youre kinda blind for not noticing how your brakets are so fucked up
pawn Код:
else if(strcmp(creategun, "knife", true) == 0)
{
if(PlayerInfo[playerid][pMats] > 24)
{
GivePlayerWeapon(playerid, 4, 1 );
}
else
{
SendClientMessage(playerid, COLOR_RED, " Not enough materials!");
}
}
else if(strcmp(creategun, "bat", true) == 0)
{
if(PlayerInfo[playerid][pMats] > 24)
{
GivePlayerWeapon(playerid, 5, 1 );
}
else
{
SendClientMessage(playerid, COLOR_RED, " Not enough materials!");
}
}
else if(strcmp(creategun, "katana", true) == 0)
{
if(PlayerInfo[playerid][pMats] > 49)
{
GivePlayerWeapon(playerid, 8, 1);
}
else
{
SendClientMessage(playerid, COLOR_RED, " Not enough Materials1");
}
}
else if(strcmp(creategun, "brassknuckles", true) == 0)
{
if(PlayerInfo[playerid][pMats] > 24)
{
GivePlayerWeapon(playerid, 1, 1);
}
else
{
SendClientMessage(playerid, COLOR_RED, " Not enough materials!");
return 1;
}
}
Re: Whats wrong -
_rAped - 30.12.2010
Quote:
Originally Posted by [FU]Victious
Yes... You can't have 1337 knives, only 1.
|
That's true I just assumed he had guns in that creategun command.
Re: Whats wrong -
Tutrix - 30.12.2010
Works perfect ! Thanks