//C4 szkript#include <a_samp>#define C4ara = 100 //Amennyibe kerüljön 1 C4new bool:C4[MAX_PLAYERS] = false;new Float:C4p[MAX_PLAYERS][4];#if defined FILTERSCRIPTpublic OnFilterScriptInit(){print(\"\\n--------------------------------------\");print(\" Blank Filterscript by your name here\");print(\"--------------------------------------\\n\");return 1;}public OnFilterScriptExit(){return 1;}#elsemain(){}#endifpublic OnPlayerCommandText(playerid, cmdtext[ ]){if(strcmp(cmdtext, \"/buyc4\", true) == 0){ if(IsPlayerInRangeOfPoint(playerid, sugar, x pozicio, y pozicio, z pozicio) )//Ha az adott pozicio közelébe van akkor tovább engedi { if(GetPlayerMoney >= C4ara)//Ha több vagy ép annyi pénze van akkor tovább engedi { GivePlayerMoney(playerid, -C4ara);//levonja a pénzt C4[playerid] = true;//C4et ad a játékosnak(csak változo) SendClientMessage(playerid, 0xC8C8C8C8, \" Vettél egy C4-et (parancsokért /c4help)\");//elküldi az üzenetet return 1; } }}if(strcmp(cmdtext, \"/c4help\", true) == 0){ SendClientMessage(playerid, 0xC8C8C8C8, \"Elérhetõ C4 parancsok: /buyc4 /c4lerak /c4bumm\"); return 1;}if(strcmp(cmdtext, \"/c4lerak\", true) == 0){ if(C4[playerid] == false) SendClientMessage(playerid, 0xC8C8C8C8, \" Nincs nállad C4\"); new Float:p[3];GetPlayerPos(playerid, p[0], p[1], p[2]);//Lekéri a jûtékos poziciojátC4p[playerid][0] = p[0];C4p[playerid][1] = p[1];C4p[playerid][2] = p[2];C4p[playerid][3] = 1;C4[playerid] = false;//elveszi a C4-etSendClientMessage(playerid, 0xC8C8C8C8, \" C4 lerakva!\");return 1;}if(strcmp(cmdtext, \"/c4bumm\", true) == 0){ if(C4p[playerid][3] == 0) SendClientMessage(playerid, 0xC8C8C8C8, \" Nincs lerakva C4-ed\");CreateExplosion(C4p[playerid][0], C4p[playerid][1], C4p[playerid][2], 1, 10);//x,y,z, tipus, sugár//tipusok: http://wiki.sa-mp.com/wiki/Explosion_List}}
//C4 szkript#include <a_samp>#define C4ara 100 //Amennyibe kerüljön 1 C4new bool:C4[MAX_PLAYERS] = false;new Float:C4p[MAX_PLAYERS][4];#if defined FILTERSCRIPTpublic OnFilterScriptInit(){ print(\"\\n--------------------------------------\"); print(\" Blank Filterscript by your name here\"); print(\"--------------------------------------\\n\"); return 1;}public OnFilterScriptExit(){ return 1;}#elsemain(){}#endifpublic OnPlayerCommandText(playerid, cmdtext[ ]){ if(strcmp(cmdtext, \"/buyc4\", true) == 0) { if(IsPlayerInRangeOfPoint(playerid, sugar, x pozicio, y pozicio, z pozicio) )//Ha az adott pozicio közelébe van akkor tovább engedi { if(GetPlayerMoney >= C4ara)//Ha több vagy ép annyi pénze van akkor tovább engedi { GivePlayerMoney(playerid, -C4ara);//levonja a pénzt C4[playerid] = true;//C4et ad a játékosnak(csak változo) SendClientMessage(playerid, 0xC8C8C8C8, \" Vettél egy C4-et (parancsokért /c4help)\");//elküldi az üzenetet return 1; } } } if(strcmp(cmdtext, \"/c4help\", true) == 0) { SendClientMessage(playerid, 0xC8C8C8C8, \"Elérhetõ C4 parancsok: /buyc4 /c4lerak /c4bumm\"); return 1; } if(strcmp(cmdtext, \"/c4lerak\", true) == 0) { if(C4[playerid] == false) SendClientMessage(playerid, 0xC8C8C8C8, \" Nincs nállad C4\"); new Float:p[3]; GetPlayerPos(playerid, p[0], p[1], p[2]);//Lekéri a jûtékos pozicioját C4p[playerid][0] = p[0]; C4p[playerid][1] = p[1]; C4p[playerid][2] = p[2]; C4p[playerid][3] = 1; C4[playerid] = false;//elveszi a C4-et SendClientMessage(playerid, 0xC8C8C8C8, \" C4 lerakva!\"); return 1; } if(strcmp(cmdtext, \"/c4bumm\", true) == 0) { if(C4p[playerid][3] == 0) SendClientMessage(playerid, 0xC8C8C8C8, \" Nincs lerakva C4-ed\"); CreateExplosion(C4p[playerid][0], C4p[playerid][1], C4p[playerid][2], 1, 10);//x,y,z, tipus, sugár //tipusok: http://wiki.sa-mp.com/wiki/Explosion_List }}
C:\\Documents and Settings\\XPPRESP3\\Desktop\\c4.pwn(31) : error 017: undefined symbol \"sugar\"C:\\Documents and Settings\\XPPRESP3\\Desktop\\c4.pwn(31) : error 017: undefined symbol \"pozicio\"C:\\Documents and Settings\\XPPRESP3\\Desktop\\c4.pwn(31) : error 017: undefined symbol \"pozicio\"C:\\Documents and Settings\\XPPRESP3\\Desktop\\c4.pwn(31) : 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 Float:X, Float:Y, Float:Z, Float:sugar;
if(IsPlayerInRangeOfPoint(playerid, sugar, X, Y, Z))
if(IsPlayerInRangeOfPoint(playerid, 2.0, X, Y, Z))
C:\\Documents and Settings\\XPPRESP3\\Desktop\\c4.pwn(65) : error 017: undefined symbol \"sugar\"C:\\Documents and Settings\\XPPRESP3\\Desktop\\c4.pwn(67) : error 076: syntax error in the expression, or invalid function callC:\\Documents and Settings\\XPPRESP3\\Desktop\\c4.pwn(97) : warning 217: loose indentationC:\\Documents and Settings\\XPPRESP3\\Desktop\\c4.pwn(103) : warning 209: function \"OnPlayerCommandText\" should return a valuePawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 2 Errors.