Need Help with my Buy Score Menu - 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: Need Help with my Buy Score Menu (
/showthread.php?tid=276819)
[SOLVED!] -
lyrics - 15.08.2011
FIXED!
Re: Need Help with my Buy Score Menu -
Wesley221 - 15.08.2011
pawn Код:
if(!strcmp(cmdtext, "/buyscore", true))
{
if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection");
if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM");
ShowPlayerDialog(playerid,8,DIALOG_STYLE_LIST,"Buy Score Menu","10 Score (Coast $1000)\n50 Score (Coast $10000)\n100 Score (Coast $50000)\n500 Score (Coast $1000000)","Buy","Cancel");
return 1;
}
Try this
Re: Need Help with my Buy Score Menu -
[MG]Dimi - 15.08.2011
PHP код:
SetPlayerScore(playerid, GetPlayerScore + ...);
Should be
PHP код:
SetPlayerScore(playerid, GetPlayerScore(playerid) + ...);
Re: Need Help with my Buy Score Menu -
lyrics - 15.08.2011
Quote:
Originally Posted by [MG]Dimi
PHP код:
SetPlayerScore(playerid, GetPlayerScore + ...);
Should be
PHP код:
SetPlayerScore(playerid, GetPlayerScore(playerid) + ...);
|
Didnt work dude it crash my compiler
Re: Need Help with my Buy Score Menu -
lyrics - 15.08.2011
Quote:
Originally Posted by Wesley221
pawn Код:
if(!strcmp(cmdtext, "/buyscore", true)) { if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection"); if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM"); ShowPlayerDialog(playerid,8,DIALOG_STYLE_LIST,"Buy Score Menu","10 Score (Coast $1000)\n50 Score (Coast $10000)\n100 Score (Coast $50000)\n500 Score (Coast $1000000)","Buy","Cancel"); return 1; }
Try this
|
Didnt work either
Re: Need Help with my Buy Score Menu -
[MG]Dimi - 15.08.2011
Maybe
PHP код:
if(dialogid == 8)
if(!response)
{
into
PHP код:
if(dialogid == 8)
{
if(!response)
{
Re: Need Help with my Buy Score Menu -
lyrics - 15.08.2011
Quote:
Originally Posted by [MG]Dimi
Maybe
PHP код:
if(dialogid == 8)
if(!response)
{
into
PHP код:
if(dialogid == 8)
{
if(!response)
{
|
You late already fix lol lol lol
Re: Need Help with my Buy Score Menu -
Wesley221 - 15.08.2011
Edit:
Woopsy, kinda late