Jump to content
  • 0

Question

Posted

Am gasit la tutoriale un tutorial de-al lui heaton si l-am facut in pawno doar ca imi da o eroare...

#include <a_samp>
new banca;
public FilterScriptInit()
{
banca = CreateObject(968,1646.75427200,-1145.59912100,24.01361500,0.00000000,-91.10023213,0.85943669); //object(23)
return 1;
}

public OnFilterScriptExit()
{
        return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/bankclose", true) == 0){
        MoveObject(banca, 1646.75427200,-1145.59912100,24.01361500,10);
        return 1;
        }
if (strcmp(cmdtext, "/bankopen", true) == 0){
        MoveObject(banca, 1646.65966800,-1145.64868200,23.64066900,10);
        return 1;
        }
	}
	return 0;
}
D:\GAMES\gamemode\Trafic\filterscripts\banca2.pwn(3) : warning 235: public function lacks forward declaration (symbol "FilterScriptInit")
D:\GAMES\gamemode\Trafic\filterscripts\banca2.pwn(23) : warning 209: function "OnPlayerCommandText" should return a value
D:\GAMES\gamemode\Trafic\filterscripts\banca2.pwn(24) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

7 answers to this question

Recommended Posts

Posted

Poftim no erors no warnings

#include <a_samp>
new banca;

public OnFilterScriptInit()
{

banca = CreateObject(968,1646.75427200,-1145.59912100,24.01361500,0.00000000,-91.10023213,0.85943669); //object(23)
return 1;
}

public OnFilterScriptExit()
{
        return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/bankclose", true) == 0){
        MoveObject(banca, 1646.75427200,-1145.59912100,24.01361500,10);
        return 1;
        }
if (strcmp(cmdtext, "/bankopen", true) == 0){
        MoveObject(banca, 1646.65966800,-1145.64868200,23.64066900,10);
        return 1;
        }
return 0;
}

Guest Dorin
Posted

Wally ma ajuti si pe mine ??? nu imi reuseste imi da erorii multe nus de ce ...terog lasami id tau de messs sau skype ce ai

Guest Dorin
Posted

Pai vreau sa fac o poarta  si am incercat si tot incercat dar nu merge imi da erori si imi face o multime de nervi ...X(. Si de aia vreau sa imi faci tu o poarta sa vad Sa nu mai mai chinui >...te rog hai dami id de mess

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.