-
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
#endif
public OnGameModeInit()
{
// Don\'t use these lines if it\'s a filterscript
cash=CreatePickup(1239,1,423.4611,2536.5435,16.1484);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == cash)
{
GameTextForPlayer(playerid,\"~r~ /enter ~y~ to enter this building\",3000,1);
}
return 1;
}
if (strcmp(\"/enter\", cmdtext, true, 6) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,10,423.4611,2536.5435,16.1484))
{
SetPlayerPos(playerid,410.5,2512.6999511719,-41.400001525879);
return 1;
}
//other enter commands go here if(player......
if (strcmp (\"/ exit\", cmdtext, igaz, 6) == 0)
{
if (IsPlayerInRangeOfPoint (playerid, 10,388.8720,173.8050,1008.3828))
{
SetPlayerPos (playerid, 1480,9829, -1769.9470,18.7958);
return 1;
}
}
és erre ezt írja:
F:\\sampe\\enter.pwn(13) : error 017: undefined symbol \"cash\"
F:\\sampe\\enter.pwn(19) : error 017: undefined symbol \"cash\"
F:\\sampe\\enter.pwn(27) : error 010: invalid function or declaration
F:\\sampe\\enter.pwn(29) : error 010: invalid function or declaration
F:\\sampe\\enter.pwn(32) : error 010: invalid function or declaration
F:\\sampe\\enter.pwn(36) : error 010: invalid function or declaration
F:\\sampe\\enter.pwn(38) : error 010: invalid function or declaration
F:\\sampe\\enter.pwn(41) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
8 Errors.
A helpte elõre köszönöm!
-
Mód elejére:
new cash;
-
valamivel jobb:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
new cash;
#include <a_samp>
#if defined FILTERSCRIPT
#endif
public OnGameModeInit()
{
// Don\'t use these lines if it\'s a filterscript
cash=CreatePickup(1239,1,423.4611,2536.5435,16.1484);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == cash)
{
GameTextForPlayer(playerid,\"~r~ /enter ~y~ to enter this building\",3000,1);
}
return 1;
}
if (strcmp(\"/enter\", cmdtext, true, 6) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,10,423.4611,2536.5435,16.1484))
{
SetPlayerPos(playerid,410.5,2512.6999511719,-41.400001525879);
return 1;
}
//other enter commands go here if(player......
if (strcmp (\"/ exit\", cmdtext, igaz, 6) == 0)
{
if (IsPlayerInRangeOfPoint (playerid, 10,388.8720,173.8050,1008.3828))
{
SetPlayerPos (playerid, 1480,9829, -1769.9470,18.7958);
return 1;
}
}
F:\\sampe\\enter.pwn(28) : error 010: invalid function or declaration
F:\\sampe\\enter.pwn(30) : error 010: invalid function or declaration
F:\\sampe\\enter.pwn(33) : error 010: invalid function or declaration
F:\\sampe\\enter.pwn(37) : error 010: invalid function or declaration
F:\\sampe\\enter.pwn(39) : error 010: invalid function or declaration
F:\\sampe\\enter.pwn(42) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
-
valamivel jobb:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
new cash;
#include <a_samp>
#if defined FILTERSCRIPT
#endif
public OnGameModeInit()
{
// Don\'t use these lines if it\'s a filterscript
cash=CreatePickup(1239,1,423.4611,2536.5435,16.1484);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == cash)
{
GameTextForPlayer(playerid,\"~r~ /enter ~y~ to enter this building\",3000,1);
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[]) {
if (strcmp(\"/enter\", cmdtext, true, 6) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,10,423.4611,2536.5435,16.1484))
{
SetPlayerPos(playerid,410.5,2512.6999511719,-41.400001525879);
return 1;
}
//other enter commands go here if(player......
if (strcmp (\"/ exit\", cmdtext, igaz, 6) == 0)
{
if (IsPlayerInRangeOfPoint (playerid, 10,388.8720,173.8050,1008.3828))
{
SetPlayerPos (playerid, 1480,9829, -1769.9470,18.7958);
return 1;
}
}
return 0;
}
-
ide jutottam de valamért nem engedi bezárni:
F:\\sampe\\enter.pwn(40) : warning 202: number of arguments does not match definition
F:\\sampe\\enter.pwn(43) : error 030: compound statement not closed at the end of file (started at line 38)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
new cash;
#include <a_samp>
#if defined FILTERSCRIPT
#endif
public OnGameModeInit()
{
// Don\'t use these lines if it\'s a filterscript
cash=CreatePickup(1239,1,423.4611,2536.5435,16.1484);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == cash)
{
GameTextForPlayer(playerid,\"~r~ /enter ~y~ to enter this building\",3000,1);
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[]) {
if (strcmp(\"/enter\", cmdtext, true, 6) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,10,423.4611,2536.5435,16.1484))
{
SetPlayerPos(playerid,410.5,2512.6999511719,-41.400001525879);
return 1;
}
if (strcmp (\"/exit\", cmdtext, true, 6) == 0)
{
if (IsPlayerInRangeOfPoint (playerid, 10,388.8720,173.8050,1008.3828))
{
SetPlayerPos (playerid, 1480,9829, -1769.9470,18.7958);
return 1;
}
-
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
new cash;
#include <a_samp>
#if defined FILTERSCRIPT
#endif
public OnGameModeInit()
{
// Don\'t use these lines if it\'s a filterscript
cash=CreatePickup(1239,1,423.4611,2536.5435,16.1484);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == cash)
{
GameTextForPlayer(playerid,\"~r~ /enter ~y~ to enter this building\",3000,1);
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[]) {
if (strcmp(\"/enter\", cmdtext, true, 6) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,10,423.4611,2536.5435,16.1484))
{
SetPlayerPos(playerid,410.5,2512.6999511719,-41.400001525879);
return 1;
}
if (strcmp (\"/exit\", cmdtext, true, 6) == 0)
{
if (IsPlayerInRangeOfPoint (playerid, 10,388.8720,173.8050,1008.3828))
{
SetPlayerPos (playerid, 1480,9829, -1769.9470,18.7958);
return 1;
}
}
-
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
new cash;
#include <a_samp>
#if defined FILTERSCRIPT
#endif
public OnGameModeInit()
{
// Don\'t use these lines if it\'s a filterscript
cash=CreatePickup(1239,1,423.4611,2536.5435,16.1484);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == cash)
{
GameTextForPlayer(playerid,\"~r~ /enter ~y~ to enter this building\",3000,1);
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[]) {
if (strcmp(\"/enter\", cmdtext, true, 6) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,10,423.4611,2536.5435,16.1484))
{
SetPlayerPos(playerid,410.5,2512.6999511719,-41.400001525879);
return 1;
}
if (strcmp (\"/exit\", cmdtext, true, 6) == 0)
{
if (IsPlayerInRangeOfPoint (playerid, 10,388.8720,173.8050,1008.3828))
{
SetPlayerPos (playerid, 1480,9829, -1769.9470,18.7958);
return 1;
}
}
F:\\sampe\\enter.pwn(36) : warning 217: loose indentation
F:\\sampe\\enter.pwn(40) : warning 202: number of arguments does not match definition
F:\\sampe\\enter.pwn(41) : warning 217: loose indentation
F:\\sampe\\enter.pwn(44) : error 030: compound statement not closed at the end of file (started at line 30)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
-
A legvégére rakj még egy ilyen jelt
}
-
:facepalm:
#include <a_samp>
#include <zcmd>
new cash;
public OnFilterScriptInit()
{
cash = CreatePickup(1239,1,423.4611,2536.5435,16.1484);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == cash)
{
GameTextForPlayer(playerid,\"~r~ /enter ~y~ to enter this building\",3000,1);
}
return 1;
}
CMD:exit(playerid)
{
if (IsPlayerInRangeOfPoint (playerid, 10,388.8720,173.8050,1008.3828))
{
SetPlayerPos(playerid, 1480,9829, -1769.9470,18.7958);
}
return 1;
}
CMD:enter(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,10,423.4611,2536.5435,16.1484))
{
SetPlayerPos(playerid,410.5,2512.6999511719,-41.400001525879);
}
return 1;
}
Tesseg!
-
http://www.solidfiles.com/d/c7967c9da6/
Színkódot megváltoztathatod.
U.I.: Megelõztél :D Én ZCMD nélkül csináltam + 1-2 hibát még kijavítottam benne.
-
#include <a_samp>
#pragma tabsize 0
new cash;
public OnFilterScriptInit()
{
// Don\'t use these lines if it\'s a filterscript
cash = CreatePickup(1239,1,423.4611,2536.5435,16.1484);
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == cash)
{
GameTextForPlayer(playerid,\"~r~ /enter ~y~ to enter this building\",3000,1);
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(\"/enter\", cmdtext, true, 6) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,10,423.4611,2536.5435,16.1484))
{
SetPlayerPos(playerid,410.5,2512.6999511719,-41.400001525879);
}
return 1;
}
if (strcmp (\"/exit\", cmdtext, true, 6) == 0)
{
if (IsPlayerInRangeOfPoint (playerid, 10,388.8720,173.8050,1008.3828))
{
SetPlayerPos (playerid, 1480.9829, -1769.9470,18.7958);
}
return 1;
}
return 0;
}
Javítottam a kordiátánál is . helyett , írtál és azért is errorozott.. probáld meg + kivettem azt a sok felesleges cuccokat..
-
nem jó így se
Dupla hozzászólás automatikusan összefûzve. ( 2012. október 13. - 10:55:19 )
köszönöm mennek a + ok!
-
Az enyémmel se? Milyen hibát ír? Lefordítottam és 0 error 0 warning.
-
U.I.: Megelõztél :D Én ZCMD nélkül csináltam + 1-2 hibát még kijavítottam benne.[/quote]Ez van xDDD :D
-
mégsem jó teljesen mivel odaállák én nem tesz be /enter rel
Dupla hozzászólás automatikusan összefûzve. ( 2012. október 13. - 11:25:12 )
létrehozza a pickup ot is meg minden de odaállok én nem tesz be /enter rell
-
Ellenõrizd az IsPlayerInRangeOfPoint pozicióját és a sugarát.
SetPlayerPos - Elteleportál egy bizonyos helyre. (De interiorba nem rak be)
Írd a SetPlayerPos alá:
SetPlayerInterior(playerid, 1); // 1 helyére az interior IDjét