Help here! - 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)
+--- Thread: Help here! (
/showthread.php?tid=382806)
Help here! -
edgargreat - 05.10.2012
O got 5 errors, don't know how to fix. Please help.
Here is the errors.
Код:
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(601) : error 001: expected token: ";", but found "new"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2942) : error 012: invalid function call, not a valid address
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2942) : warning 215: expression has no effect
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2942) : warning 215: expression has no effect
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2942) : warning 215: expression has no effect
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2942) : warning 215: expression has no effect
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2942) : warning 215: expression has no effect
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2942) : warning 215: expression has no effect
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2942) : warning 215: expression has no effect
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2942) : warning 215: expression has no effect
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2942) : error 001: expected token: ";", but found ")"
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2942) : error 029: invalid expression, assumed zero
C:\Users\aNdRe\Downloads\EXELGRP\gamemodes\ATRRP1.4r2.pwn(2942) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
Line 601
Line 2942
Код:
ProxyDetector(30.0, giveplayerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
Re: Help here! -
Danyal - 05.10.2012
show line 600
Re: Help here! -
edgargreat - 05.10.2012
it's blank
Re: Help here! -
Danyal - 05.10.2012
then the line that has code before line 601
EDIT: DO You have team viewer if you want my help pm me your id and pass of TV.
Re: Help here! -
edgargreat - 05.10.2012
Код:
// strcpy - Simon / ******
#define strcpy(%0,%1,%2) \
strcat((%0[0] = '\0', %0), %1, %2)
new FALSE = false;
#define SendFormattedMessage(%0,%1,%2) do{new _str[128]; format(_str,128,%2); SendClientMessageEx(%0,%1,_str);}while(FALSE)
Re: Help here! -
Danyal - 05.10.2012
pawn Код:
#define BYTES_PER_CELL 4
stock SendFormattedMessage(playerid, color, fstring[], {Float, _}:...)
{
static const STATIC_ARGS = 3;
new n = (numargs() - STATIC_ARGS) * BYTES_PER_CELL;
if(n)
{
new message[144],arg_start,arg_end;
#emit CONST.alt fstring
#emit LCTRL 5
#emit ADD
#emit STOR.S.pri arg_start
#emit LOAD.S.alt n
#emit ADD
#emit STOR.S.pri arg_end
do
{
#emit LOAD.I
#emit PUSH.pri
arg_end -= BYTES_PER_CELL;
#emit LOAD.S.pri arg_end
}
while(arg_end > arg_start);
#emit PUSH.S fstring
#emit PUSH.C 144
#emit PUSH.ADR message
n += BYTES_PER_CELL * 3;
#emit PUSH.S n
#emit SYSREQ.C format
n += BYTES_PER_CELL;
#emit LCTRL 4
#emit LOAD.S.alt n
#emit ADD
#emit SCTRL 4
if(playerid == INVALID_PLAYER_ID)
{
#pragma unused playerid
return SendClientMessageToAll(color, message);
} else {
return SendClientMessage(playerid, color, message);
}
} else {
if(playerid == INVALID_PLAYER_ID)
{
#pragma unused playerid
return SendClientMessageToAll(color, fstring);
} else {
return SendClientMessage(playerid, color, fstring);
}
}
}
try this. this is more optimized code by ****** and Zee (Creator of zcmd Fastest Command Proceesor)
COMMENT THESE LINES IN ORDER TO GET ABOVE CODE WORKING
pawn Код:
//new FALSE = false;
//#define SendFormattedMessage(%0,%1,%2) do{new _str[128]; format(_str,128,%2); SendClientMessageEx(%0,%1,_str);}while(FALSE)
Re: Help here! -
edgargreat - 05.10.2012
same erros. O.o
Re: Help here! -
Danyal - 05.10.2012
If you have team viewer i will try to fix that over team viewer just pm me your id and pass of team viewer