new kapu1;forward kaputimer();public OnFilterScriptInit(){kapu1 1 = CreateObject(986, 64.099998474121, -1525.1999511719, 5.9000000953674, 0, 0, 86);return 1;}CMD:fizetkapuki(playerid,params[]){MoveObject(kapu1,64.099998474121, -1525.1999511719, -1.6000000238419,5.0);SetTimer(\"kaputimer\", 60000, false);GivePlayerMoney(playerid, -5000); //most 1.000-vesz le...return 1;}public kaputimer(){MoveObject(kapu1,64.099998474121, -1525.1999511719, 5.9000000953674,5.0);return 1;}
C:\\Documents and Settings\\Dyross Dark\\Asztal\\fizetkapuki.pwn(3) : warning 235: public function lacks forward declaration (symbol \"OnFilterScriptInit\")C:\\Documents and Settings\\Dyross Dark\\Asztal\\fizetkapuki.pwn(5) : warning 215: expression has no effectC:\\Documents and Settings\\Dyross Dark\\Asztal\\fizetkapuki.pwn(5) : error 001: expected token: \";\", but found \"-integer value-\"C:\\Documents and Settings\\Dyross Dark\\Asztal\\fizetkapuki.pwn(5) : error 022: must be lvalue (non-constant)C:\\Documents and Settings\\Dyross Dark\\Asztal\\fizetkapuki.pwn(5) : error 017: undefined symbol \"CreateObject\"C:\\Documents and Settings\\Dyross Dark\\Asztal\\fizetkapuki.pwn(5) : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors.
new kapu1;forward kaputimer();public OnFilterScriptInit(){kapu1 = CreateObject(986, 64.099998474121, -1525.1999511719, 5.9000000953674, 0, 0, 86);//mindig CreateDynamicObject-be konvertáld és használj streamert, jobb!return 1;}CMD:fizetkapuki(playerid,params[]){MoveObject(kapu1,64.099998474121, -1525.1999511719, -1.6000000238419,5.0);//ezt is át kell írnod, a MoveDynamicObject paraméterei: modelid, x,y,z,sebesség, rx,ry,rzSetTimer(\"kaputimer\", 60000, false);GivePlayerMoney(playerid, -5000); return 1;}public kaputimer(){MoveDynamicObject(kapu1,64.099998474121, -1525.1999511719, 5.9000000953674,5.0);////ezt is át kell írnod, a MoveDynamicObject paraméterei: modelid, x,y,z,sebesség, rx,ry,rzreturn 1;}
Töltsd le a streamer -t, és \"telepítsd\" ![/quote]+ zcmd-t is!Helyesen:#include <a_samp>#include <zcmd>#include <streamer>new kapu1;forward kaputimer();public OnFilterScriptInit(){kapu1 = CreateDynamicObject(986, 64.099998474121, -1525.1999511719, 5.9000000953674, 0, 0, 86);return 1;}CMD:fizetkapuki(playerid,params[]){MoveDynamicObject(kapu1,64.099998474121, -1525.1999511719, -1.6000000238419,5.0);SetTimer(\"kaputimer\", 60000, false);GivePlayerMoney(playerid, -5000);return 1;}public kaputimer(){MoveDynamicObject(kapu1,64.099998474121, -1525.1999511719, 5.9000000953674,5.0);return 1;}
#include <a_samp>#include <zcmd>#include <streamer>new kapu1;forward kaputimer();public OnFilterScriptInit(){kapu1 = CreateDynamicObject(986, 64.099998474121, -1525.1999511719, 5.9000000953674, 0, 0, 86);return 1;}CMD:fizetkapuki(playerid,params[]){MoveDynamicObject(kapu1,64.099998474121, -1525.1999511719, -1.6000000238419,5.0);SetTimer(\"kaputimer\", 60000, false);GivePlayerMoney(playerid, -5000);return 1;}public kaputimer(){MoveDynamicObject(kapu1,64.099998474121, -1525.1999511719, 5.9000000953674,5.0);return 1;}
#include <a_samp>#include <zcmd>#include <streamer>#include <gvar>new kapu1;forward kaputimer();public OnFilterScriptInit() {kapu1 = CreateDynamicObject(986, 64.099998474121, -1525.1999511719, 5.9000000953674, 0, 0, 86);return 1;}CMD:fizetkapuki(playerid) {if(GetGVarInt(\"KapuNyitva\") == 1) return SendClientMessage(playerid, -1, \"A kapu még nem zárt le!\");if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, -1, \"Nincs elég pénzed a kapu kinyitásához.\"); MoveDynamicObject(kapu1,64.099998474121, -1525.1999511719, -1.6000000238419,5.0); SetTimer(\"kaputimer\", 60000, false);SetGVarInt(\"KapuNyitva\", 1); GivePlayerMoney(playerid, -5000);return 1;}public kaputimer() { MoveDynamicObject(kapu1,64.099998474121, -1525.1999511719, 5.9000000953674,5.0);SetGVarInt(\"KapuNyitva\", 0);return 1;}
C:\\Documents and Settings\\Dyr Oss\\Asztal\\Szerver\\pawno\\include\\streamer.inc(155) : error 017: undefined symbol \"OBJECT_MATERIAL_SIZE_256x128\"C:\\Documents and Settings\\Dyr Oss\\Asztal\\Szerver\\pawno\\include\\streamer.inc(236) : error 017: undefined symbol \"MAPICON_LOCAL\"C:\\Documents and Settings\\Dyr Oss\\Asztal\\Szerver\\pawno\\include\\streamer.inc(375) : warning 235: public function lacks forward declaration (symbol \"OnPlayerEditObject\")C:\\Documents and Settings\\Dyr Oss\\Asztal\\Szerver\\pawno\\include\\streamer.inc(397) : warning 235: public function lacks forward declaration (symbol \"OnPlayerSelectObject\")C:\\Documents and Settings\\Dyr Oss\\Asztal\\Szerver\\pawno\\include\\streamer.inc(399) : error 017: undefined symbol \"SELECT_OBJECT_PLAYER_OBJECT\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 3 Errors.