Posts: 2,938
Threads: 162
Joined: May 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.
Posts: 2,938
Threads: 162
Joined: May 2010
thx fixed!
help me make a pay command now>?
heres my jail sys
http://pastebin.com/YifX6MwZ
Posts: 2,938
Threads: 162
Joined: May 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
Posts: 2,938
Threads: 162
Joined: May 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.
Posts: 1,150
Threads: 16
Joined: Oct 2009
Reputation:
0
Please show me the part of the code which gives this error and not the whole GM. Please specify the lines too.
Posts: 2,938
Threads: 162
Joined: May 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.
Posts: 2,938
Threads: 162
Joined: May 2010