Posts: 261
Threads: 93
Joined: Aug 2011
Reputation:
0
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?
Posts: 261
Threads: 93
Joined: Aug 2011
Reputation:
0
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?
Posts: 89
Threads: 10
Joined: Jul 2010
Reputation:
0
This is when you use the word "Unique". Good Job.
Posts: 171
Threads: 10
Joined: May 2012
Posts: 651
Threads: 103
Joined: Feb 2012
Reputation:
0
yeah, its pretty nice, thanks!
Posts: 14
Threads: 1
Joined: Jun 2012
Reputation:
0
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
Posts: 2,698
Threads: 37
Joined: Mar 2012
Reputation:
0
Amazing.Gonna test it when i get a pc.