[HELP]error 010: invalid function or declaration - 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: [HELP]error 010: invalid function or declaration (
/showthread.php?tid=143030)
[HELP]error 010: invalid function or declaration -
endjuru - 20.04.2010
Please help me fix this error/crash
Код:
C:\Documents and Settings\Mufasa\Мои документы\Downloads\ak.pwn(160) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Код:
{
new Nick[MAX_PLAYER_NAME];
GetPlayerName(playerid, Nick, sizeof(Nick));
if(strfind(Nick, "Kikiz", true) == 1) { // tagad ir patiess apgalvojums - ja ir tads un tads vards
SetPlayerPos(playerid,2494.1328,2396.6514,4.2109);
}
}
return 1; //it's a 160
}
public OnPlayerDeath(playerid, killerid, reason)
Re: [HELP]error 010: invalid function or declaration -
endjuru - 21.04.2010
Any one help me!?!
Re: [HELP]error 010: invalid function or declaration -
Whitetiger - 21.04.2010
you have to many closing brackets :P
do
Код:
{
new Nick[MAX_PLAYER_NAME];
GetPlayerName(playerid, Nick, sizeof(Nick));
if(strfind(Nick, "Kikiz", true) == 1) { // tagad ir patiess apgalvojums - ja ir tads un tads vards
SetPlayerPos(playerid,2494.1328,2396.6514,4.2109);
}
return 1; //it's a 160
}
//P.S you might want to do != -1 on strfind, if you do == 1 then that would be like, "if strfind is false, then set the player to this position"
//strfind is a little weird, https://sampwiki.blast.hk/wiki/Strfind