[HELP]error 010: invalid function or declaration
#1

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)
Reply
#2

Any one help me!?!
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)