// This is a comment// uncomment the line below if you want to write a filterscript//#define FILTERSCRIPT#include <a_samp>#if defined FILTERSCRIPT#endifpublic OnGameModeInit(){// Don\'t use these lines if it\'s a filterscriptcash=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(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 declarationF:\\sampe\\enter.pwn(29) : error 010: invalid function or declarationF:\\sampe\\enter.pwn(32) : error 010: invalid function or declarationF:\\sampe\\enter.pwn(36) : error 010: invalid function or declarationF:\\sampe\\enter.pwn(38) : error 010: invalid function or declarationF:\\sampe\\enter.pwn(41) : error 010: invalid function or declarationPawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 8 Errors.
new cash;
// This is a comment// uncomment the line below if you want to write a filterscript//#define FILTERSCRIPTnew cash;#include <a_samp>#if defined FILTERSCRIPT#endifpublic OnGameModeInit(){// Don\'t use these lines if it\'s a filterscriptcash=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 declarationF:\\sampe\\enter.pwn(30) : error 010: invalid function or declarationF:\\sampe\\enter.pwn(33) : error 010: invalid function or declarationF:\\sampe\\enter.pwn(37) : error 010: invalid function or declarationF:\\sampe\\enter.pwn(39) : error 010: invalid function or declarationF:\\sampe\\enter.pwn(42) : error 010: invalid function or declarationPawn 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 FILTERSCRIPTnew cash;#include <a_samp>#if defined FILTERSCRIPT#endifpublic OnGameModeInit(){// Don\'t use these lines if it\'s a filterscriptcash=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;}
// This is a comment// uncomment the line below if you want to write a filterscript//#define FILTERSCRIPTnew cash;#include <a_samp>#if defined FILTERSCRIPT#endifpublic OnGameModeInit(){// Don\'t use these lines if it\'s a filterscriptcash=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;}
Kód: (pawn) [Kijelölés]F:\\sampe\\enter.pwn(40) : warning 202: number of arguments does not match definitionF:\\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.
F:\\sampe\\enter.pwn(40) : warning 202: number of arguments does not match definitionF:\\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 FILTERSCRIPTnew cash;#include <a_samp>#if defined FILTERSCRIPT#endifpublic 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 indentationF:\\sampe\\enter.pwn(40) : warning 202: number of arguments does not match definitionF:\\sampe\\enter.pwn(41) : warning 217: loose indentationF:\\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
}
#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;}
#include <a_samp>#pragma tabsize 0new 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;}
U.I.: Megelõztél Én ZCMD nélkül csináltam + 1-2 hibát még kijavítottam benne.[/quote]Ez van xDDD