SA-MP Forums Archive
[Include] $$ Dollars and Cents $$ - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] $$ Dollars and Cents $$ (/showthread.php?tid=276588)

Pages: 1 2


Re: $$ Dollars and Cents $$ - gamer931215 - 29.08.2011

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
I wanted to keep the textdraw part in a separate filterscript so it doesn't mess up if people are using the include in gamemode AND in filterscripts too.
You can use defines to turn textdraws on/off

also why would people use this in multiple scripts since it isnt "sharing" the money values with echother anyway, (so people have like $1 in the gamemode and $5 in the filterscript) ?

just sayin


Re: $$ Dollars and Cents $$ - ancezas - 31.08.2011

it's great script but i tried to make a CMD to get some cents it looks like this:
if(!strcmp(cmdtext, "/centai", true,6))
{
Cents_GivePlayerMoney(playerid, 0, cents=12)
return 1;
}

But i have errors:
C:\DOCUME~1\Ance_Zas\Desktop\GM\GM\GM\GM\GAMEMO~1\ band7.pwn(6923) : error 017: undefined symbol "cents"
C:\DOCUME~1\Ance_Zas\Desktop\GM\GM\GM\GM\GAMEMO~1\ band7.pwn(6923) : warning 215: expression has no effect
C:\DOCUME~1\Ance_Zas\Desktop\GM\GM\GM\GM\GAMEMO~1\ band7.pwn(6923) : error 001: expected token: ";", but found ")"
C:\DOCUME~1\Ance_Zas\Desktop\GM\GM\GM\GM\GAMEMO~1\ band7.pwn(6923) : error 029: invalid expression, assumed zero

Can you make a CMD to get cents?


Re: $$ Dollars and Cents $$ - ancezas - 31.08.2011

I have a prob, i crate this comand:if(!strcmp(cmdtext, "/centai", true,6))
{
GivePlayerMoney(playerid, 1, 2);
return 1;
}
it's working weveryfing is good but when i flushed SA:MP and go to webs or descop and going again in samp my cents and dolars geted with that cmd disapiers, can you explain it, maby i need to make dini saving cents?


Re: $$ Dollars and Cents $$ - TheArcher - 31.08.2011

Quote:
Originally Posted by ancezas
Посмотреть сообщение
it's great script but i tried to make a CMD to get some cents it looks like this:
if(!strcmp(cmdtext, "/centai", true,6))
{
Cents_GivePlayerMoney(playerid, 0, cents=12)
return 1;
}

But i have errors:
C:\DOCUME~1\Ance_Zas\Desktop\GM\GM\GM\GM\GAMEMO~1\ band7.pwn(6923) : error 017: undefined symbol "cents"
C:\DOCUME~1\Ance_Zas\Desktop\GM\GM\GM\GM\GAMEMO~1\ band7.pwn(6923) : warning 215: expression has no effect
C:\DOCUME~1\Ance_Zas\Desktop\GM\GM\GM\GM\GAMEMO~1\ band7.pwn(6923) : error 001: expected token: ";", but found ")"
C:\DOCUME~1\Ance_Zas\Desktop\GM\GM\GM\GM\GAMEMO~1\ band7.pwn(6923) : error 029: invalid expression, assumed zero

Can you make a CMD to get cents?
Use
Код:
 GivePlayerMoeny(playerid, 20, 20);
with this include the native will be
Код:
GivePlayerMoney(playerid, dollars, cents);



Re: $$ Dollars and Cents $$ - ancezas - 31.08.2011

And What about this problem:
Quote:

I have a prob, i crate this comand:if(!strcmp(cmdtext, "/centai", true,6))
{
GivePlayerMoney(playerid, 1, 2);
return 1;
}
it's working weveryfing is good but when i flushed SA:MP and go to webs or descop and going again in samp my cents and dolars geted with that cmd disapiers, can you explain it, maby i need to make dini saving cents?




Re: $$ Dollars and Cents $$ - HotPlayer - 02.09.2011

Nice work@!@
10/10


Re: $$ Dollars and Cents $$ - THE_KING$5$ - 04.10.2011

cool


Re: $$ Dollars and Cents $$ - DiiP - 04.10.2011

Nice one.


Re: $$ Dollars and Cents $$ - Xx_OutLawZ_xX - 04.10.2011

This is when you use the word "Unique". Good Job.


Re : $$ Dollars and Cents $$ - TheBest6 - 04.10.2011

Nice


Re: $$ Dollars and Cents $$ - TheMaddox - 04.10.2011

Nice great work love it!


Re: $$ Dollars and Cents $$ - Kasis - 08.11.2011

Great for RP.


Re: $$ Dollars and Cents $$ - Typhome - 08.11.2011

Good job


Re: $$ Dollars and Cents $$ - tomys8 - 14.04.2012

Yeah thx..


Re: $$ Dollars and Cents $$ - iFederal - 31.05.2012

epic and perfect.


Re: $$ Dollars and Cents $$ - RedWingz - 07.06.2012

Awesome!


Re: $$ Dollars and Cents $$ - pasha97 - 07.06.2012

yeah, its pretty nice, thanks!


Re: $$ Dollars and Cents $$ - Kiwar_El - 23.06.2012

Nice , Include , but i have a prob.

It only give me Cents

CMD:geld(playerid,params[]) {
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, Gelb, "Man muss eingeloggt , sein um Befehle zu verwenden.");
GivePlayerMoney(playerid, 20, 20);
SendClientMessage(playerid, Gelb, "Du hast 20,20$ erhalten.");
return 1;
}

And i get only 20cent , who i can solve this problem.

Sorry for my Bad English I am a German


Re: $$ Dollars and Cents $$ - RazzVann - 23.06.2012

good job !!!


Re: $$ Dollars and Cents $$ - Lordzy - 30.06.2012

Amazing.Gonna test it when i get a pc.