if(GetPlayerMoney(playerid) < 0 ){//Ide, hogy hol van a börtön, vagy stbstb...}
//----------------------------------------------------------//// SCRIPT by BItS////----------------------------------------------------------new string[128];//----------------------------------------------------------#include <a_samp>#define SZIN_PIROS 0xAA3333AA//----------------------------------------------------------forward berak(playerid);//----------------------------------------------------------new pName[MAX_PLAYER_NAME];//defináljuk//----------------------------------------------------------main(){print(\"\\n---------------------------------------\");print(\"Jail script betoltve by BiTs\\n\");print(\"---------------------------------------\\n\");}//----------------------------------------------------------public berak(playerid){ // berakja ha kevesebb mint nulla,de ha több nem! if(GetPlayerMoney(playerid) < 0 ) { SetPlayerPos(playerid, 264.6288,77.5742,1001.0391); GetPlayerName(playerid, pName, sizeof(pName)); // név format(string, sizeof(string), \"%s börtönbe lett zárva a kevés pénze miatt!\", pName); SendClientMessageToAll(SZIN_PIROS, string); return 0; }}
C:\\Documents and Settings\\User\\Asztal\\borton.pwn(1) : error 010: invalid function or declarationC:\\Documents and Settings\\User\\Asztal\\borton.pwn(35) : warning 217: loose indentationC:\\Documents and Settings\\User\\Asztal\\borton.pwn(35) : error 017: undefined symbol \"string\"C:\\Documents and Settings\\User\\Asztal\\borton.pwn(35) : error 017: undefined symbol \"string\"C:\\Documents and Settings\\User\\Asztal\\borton.pwn(35) : error 029: invalid expression, assumed zeroC:\\Documents and Settings\\User\\Asztal\\borton.pwn(35) : fatal error 107: too many error messages on one line
//----------------------------------------------------------//// SCRIPT by BItS////----------------------------------------------------------#include <a_samp>//-----------------------------------------------------------new string[128];//----------------------------------------------------------forward berak(playerid);//----------------------------------------------------------new pName[MAX_PLAYER_NAME];//defináljuk//----------------------------------------------------------main(){print(\"\\n---------------------------------------\");print(\"Jail script betoltve by BiTs\\n\");print(\"---------------------------------------\\n\");}//----------------------------------------------------------public berak(playerid){ // berakja ha kevesebb mint nulla,de ha több nem! if(GetPlayerMoney(playerid) < 0 ) { SetPlayerPos(playerid, 264.6288,77.5742,1001.0391); GetPlayerName(playerid, pName, sizeof(pName)); // névformat(string, sizeof(string), \"%s börtönbe lett zárva a kevés pénze miatt!\", pName);SendClientMessageToAll(SZIN_PIROS, string); return 1; }return 0;}
C:\\Documents and Settings\\User\\Asztal\\borton.pwn(15) : error 017: undefined symbol \"MAX_PLAYER_NAME\"C:\\Documents and Settings\\User\\Asztal\\borton.pwn(15) : error 009: invalid array size (negative, zero or out of bounds)C:\\Documents and Settings\\User\\Asztal\\borton.pwn(20) : error 017: undefined symbol \"print\"C:\\Documents and Settings\\User\\Asztal\\borton.pwn(21) : error 017: undefined symbol \"print\"C:\\Documents and Settings\\User\\Asztal\\borton.pwn(22) : error 017: undefined symbol \"print\"C:\\Documents and Settings\\User\\Asztal\\borton.pwn(30) : error 017: undefined symbol \"GetPlayerMoney\"C:\\Documents and Settings\\User\\Asztal\\borton.pwn(32) : error 017: undefined symbol \"SetPlayerPos\"C:\\Documents and Settings\\User\\Asztal\\borton.pwn(33) : error 017: undefined symbol \"GetPlayerName\"C:\\Documents and Settings\\User\\Asztal\\borton.pwn(33) : warning 224: indeterminate array size in \"sizeof\" expression (symbol \"\")C:\\Documents and Settings\\User\\Asztal\\borton.pwn(33) : warning 202: number of arguments does not match definitionC:\\Documents and Settings\\User\\Asztal\\borton.pwn(34) : error 017: undefined symbol \"format\"C:\\Documents and Settings\\User\\Asztal\\borton.pwn(34) : warning 202: number of arguments does not match definitionC:\\Documents and Settings\\User\\Asztal\\borton.pwn(34) : warning 202: number of arguments does not match definitionC:\\Documents and Settings\\User\\Asztal\\borton.pwn(34) : warning 202: number of arguments does not match definitionC:\\Documents and Settings\\User\\Asztal\\borton.pwn(35) : error 017: undefined symbol \"SendClientMessageToAll\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 10 Errors.
== - egyenlo<= ill.: =< - kisebb, vagy egyenlo mint az X szám=> ill.: >= - nagyobb, vagy egyenlo mint az X szám< - kisebb, mint X> - több, mint X!= - nem egyenlo X számmal
#include <a_samp>#define sarga 0xFFFF00AAforward berak(playerid);public berak(playerid){if(GetPlayerMoney(playerid) < 0 ){ new string[128]; new pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, sizeof(pName)); SetPlayerPos(playerid, 264.6288,77.5742,1001.0391);format(string, sizeof(string), \"%s börtönbe lett zárva a kevés pénze miatt!\", pName);SendClientMessageToAll(sarga, string); } return 1;}public OnFilterScriptInit(){print(\"betotve\");return 1;}
#include <a_samp>#define sarga 0xFFFF00AAnew Timer;forward berak(playerid);public berak(playerid){if(GetPlayerMoney(playerid) < 0 ){ new string[128]; new pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, sizeof(pName)); SetPlayerPos(playerid, 264.6288,77.5742,1001.0391); format(string, sizeof(string), \"%s börtönbe lett zárva a kevés pénze miatt!\", pName); SendClientMessageToAll(sarga, string); } return 1;}public OnFilterScriptInit(){print(\"betotve\"); Timer = SetTimer(\"berak\",800,1);return 1;}public OnFilterScriptExit(){ KillTimer(Timer); return 1;}