ticket/jail prob - 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: ticket/jail prob (
/showthread.php?tid=152411)
ticket/jail prob -
Kar - 04.06.2010
Код:
new rmoney = random(1000);
rmoney = rmoney + 500;
format(string1, sizeof(string1), "%s Have Been Fined %d Because You Were Just Ticketed!", aname, playerid, pname, playerid);
SendClientMessage(0xFF0000AA, string1);
SetPlayerWantedLevel(playerid, 0);
format(string2, sizeof(string2), "%s(%d) Has Recieved A Ticket From Officer %s(%d)", aname, playerid, pname, playerid);
SendClientMessageToAll(0xFF0000AA, string1);
return 1;
Код:
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SAMPSE~1\FILTER~1\JAIL_S~1.PWN(104) : error 035: argument type mismatch (argument 2)
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SAMPSE~1\FILTER~1\JAIL_S~1.PWN(106) : error 017: undefined symbol "string2"
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SAMPSE~1\FILTER~1\JAIL_S~1.PWN(106) : error 017: undefined symbol "string2"
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SAMPSE~1\FILTER~1\JAIL_S~1.PWN(106) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SAMPSE~1\FILTER~1\JAIL_S~1.PWN(106) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
Re: ticket/jail prob -
(SF)Noobanatior - 04.06.2010
undefined symbol "string2"
new string2[128];
and what is line 104? found it
pawn Код:
format(string1, sizeof(string1), "%s Have Been Fined %d Because You Were Just Ticketed!", aname, playerid, rmoney);//<--- prob want rmoney here too
SendClientMessage(playerid,0xFF0000AA, string1);
and
pawn Код:
SetPlayerWantedLevel(playerid, 0);
format(string2, sizeof(string2), "%s(%d) Has Recieved A Ticket From Officer %s(%d)", aname, playerid, pname, playerid);
SendClientMessageToAll(0xFF0000AA, string2);//<---string2
Re: ticket/jail prob -
Kar - 04.06.2010
thx fixed!
help me make a pay command now>?
heres my jail sys
http://pastebin.com/YifX6MwZ
Re: ticket/jail prob -
(SF)Noobanatior - 04.06.2010
pay what when and how?
Re: ticket/jail prob -
Kar - 04.06.2010
uh i mean like when a cop issues a ticket
the player gets %s has issued you a ticket and use /pay to pay off the ticket
u understand or shall i explain more
Re: ticket/jail prob -
(SF)Noobanatior - 04.06.2010
thouse commands wouldnt work just by reading it ill remake /tk as an example for ya
http://pastebin.com/MKVYrqHS
there ya go /tk should work cant compile i dont have dcmd
and a players fines can be found at PlayersTicket[playerid];
Re: ticket/jail prob -
Kar - 04.06.2010
5 errors
Код:
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SAMPSE~1\FILTER~1\JAIL_S~1.PWN(84) : error 033: array must be indexed (variable "tmp")
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SAMPSE~1\FILTER~1\JAIL_S~1.PWN(87) : error 001: expected token: ";", but found "else"
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SAMPSE~1\FILTER~1\JAIL_S~1.PWN(87) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SAMPSE~1\FILTER~1\JAIL_S~1.PWN(87) : warning 215: expression has no effect
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SAMPSE~1\FILTER~1\JAIL_S~1.PWN(87) : error 001: expected token: ";", but found "if"
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SAMPSE~1\FILTER~1\JAIL_S~1.PWN(87) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
Re: ticket/jail prob -
DJDhan - 04.06.2010
Please show me the part of the code which gives this error and not the whole GM. Please specify the lines too.
Re: ticket/jail prob -
Kar - 04.06.2010
line 84
Код:
tmp = strtok(params,idx);
and line 87
Код:
else if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, 0xFF0000AA, "The ID You Entered Was Not Found.");
Код:
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SAMPSE~1\FILTER~1\JAIL_S~1.PWN(84) : error 033: array must be indexed (variable "tmp")
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SAMPSE~1\FILTER~1\JAIL_S~1.PWN(87) : error 001: expected token: ";", but found "else"
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SAMPSE~1\FILTER~1\JAIL_S~1.PWN(87) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SAMPSE~1\FILTER~1\JAIL_S~1.PWN(87) : warning 215: expression has no effect
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SAMPSE~1\FILTER~1\JAIL_S~1.PWN(87) : error 001: expected token: ";", but found "if"
C:\DOCUME~1\Karim\MYDOCU~1\GRANDT~1\SAMPSE~1\FILTER~1\JAIL_S~1.PWN(87) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
Re: ticket/jail prob -
Kar - 04.06.2010
help?