SA-MP Forums Archive
error 012: invalid function call, not a valid address - 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: error 012: invalid function call, not a valid address (/showthread.php?tid=533452)



error 012: invalid function call, not a valid address - d0nTtoucH - 24.08.2014

pawn Код:
C:\Users\\Desktop\DRIFT\gamemodes\Drift.pwn(8405) : error 012: invalid function call, not a valid address
C:\Users\\Desktop\DRIFT\gamemodes\Driftpwn(8405) : warning 215: expression has no effect
C:\Users\\Desktop\DRIFT\gamemodes\Drift.pwn(8405) : error 001: expected token: ";", but found ")"
C:\Users\\Desktop\DRIFT\gamemodes\Drift.pwn(8405) : error 029: invalid expression, assumed zero
C:\Users\\Desktop\DRIFT\gamemodes\Drift.pwn(8405) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
can someone help me solve this out .
this is the line..
pawn Код:
if(strcmp(PlayerName(playerid), "d0nTtoucH", true) != 0)



Re: error 012: invalid function call, not a valid address - nmader - 24.08.2014

Check the line right above that, I put it in my code and it compiled perfectly, you probably forgot to put a semicolon ( ; ) on the previous statement/line.


Re: error 012: invalid function call, not a valid address - d0nTtoucH - 24.08.2014

i dont know this is the code
pawn Код:
if(vehicleid ==car22)//?????? ?????? ????? ?? ????????, ??????? ?????? ???, ????? ? ??????????!
    {
    if(strcmp(pname(playerid), "d0nTtoucH", true) != 0)
    {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid, 0xB50F00AA, "Това превозно средство е собственост на d0nTtoucH.");
    }
    }



Re: error 012: invalid function call, not a valid address - nmader - 24.08.2014

Can I see the set of code before that, what you sent me compiles fine for me as well..


Re: error 012: invalid function call, not a valid address - d0nTtoucH - 24.08.2014

the problem is solved..