if(!CheckPointCheck(playerid)) tuh mal das ! da weg also if(CheckPointCheck(playerid)) schau dann obs geht !?
Danke, es liegt aber nicht daran..
if(!CheckPointCheck(playerid)) tuh mal das ! da weg also if(CheckPointCheck(playerid)) schau dann obs geht !?
Danke, es liegt aber nicht daran..
Hallo wenn ich den CMD: startroute schreibe und die 1. Route wähle erscheint kein CP, wisst ihr vielleicht woran es liegen könnte?
Wenn ich es compile zeigt es keine Fehlern an.
Ich bedanke mich schonmal im vorraus
CMD:startroute(playerid, params[])
{
if(PlayerInfo[playerid][pJob] == 22 || PlayerInfo[playerid][pJob2] == 22)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(IsABusCar(vehicleid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(!CheckPointCheck(playerid))
{
if(IsPlayerInRangeOfPoint(playerid, 80.0, 1237.2679, -1814.0695, 13.2502))
{
ShowPlayerDialog(playerid, DIALOG_BUSJOB, DIALOG_STYLE_LIST,"Select the Route","Route #1\nRoute #2\nRoute #3\nRoute #4","Select","Cancel");
return 1;
}
}
else return SendClientMessageEx(playerid, COLOR_WHITE, "Please ensure that your current checkpoint is destroyed first (you either have material packages, or another existing checkpoint).");
}
else return SendClientMessageEx(playerid, COLOR_GREY, "You are not driving a Bus Transport Vehicle or you aren't near the Transport Company!");
}
else return SendClientMessageEx(playerid, COLOR_GREY, "You are not a Bus Driver!");
return 1;
}
Dialog
if(dialogid == DIALOG_BUSJOB)
{
if(response)
{
switch(listitem)
{
case 0:
{
SetPlayerCheckpoint(playerid, 1308.3702, -1857.7684, 13.5469, 7.0); //1st Stat
BusCP[playerid] = 1;
}
case 1:
{
ShowPlayerDialog(playerid, DIALOG_BUSJOB, DIALOG_STYLE_LIST,"Select the Route","Route #1\nRoute #2\nRoute #3\nRoute #4","Select","Cancel");
}
case 2:
{
ShowPlayerDialog(playerid, DIALOG_BUSJOB, DIALOG_STYLE_LIST,"Select the Route","Route #1\nRoute #2\nRoute #3\nRoute #4","Select","Cancel");
}
case 3:
{
ShowPlayerDialog(playerid, DIALOG_BUSJOB, DIALOG_STYLE_LIST,"Select the Route","Route #1\nRoute #2\nRoute #3\nRoute #4","Select","Cancel");
}
}
}
return 1;
}
HAT SICH GEKLÄRT VIELEN DANK Firerfan
Es ladet irgendwie das Plugin nicht. weißt du woran es liegt ?
Server CFG:
ZitatAlles anzeigenlanmode 0
rcon_password asvwegwegw
maxplayers 500
port 7777
hostname Next Gen
gamemode0 NGRP
filterscripts yom_buttons gcustom
announce 1
query 1
plugins streamer sscanf mysql Whirlpool audio nativechecker
weburl samp.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:%S]
Log:
ZitatAlles anzeigenSA-MP Dedicated Server
----------------------
v0.3x, (C)2005-2013 SA-MP Team
[01:21:23]
[01:21:23] Server Plugins
[01:21:23] --------------
[01:21:23] Loading plugin: streamer
[01:21:23]
*** Streamer Plugin v2.6.1 by Incognito loaded ***
[01:21:23] Loaded.
[01:21:23] Loading plugin: sscanf
[01:21:23]
[01:21:23] ===============================
[01:21:23] sscanf plugin loaded.
[01:21:23] Version: 2.8.1
[01:21:23] (c) 2012 Alex "Y_Less" Cole
[01:21:23] ===============================
[01:21:23] Loaded.
[01:21:23] Loading plugin: mysql
[01:21:25] Failed.
[01:21:25] Loading plugin: Whirlpool
[01:21:26]
[01:21:26] ==================
[01:21:26]
[01:21:26] Whirlpool loaded
[01:21:26]
[01:21:26] ==================
[01:21:26]
[01:21:26] Loaded.
[01:21:26] Loading plugin: audio
[01:21:26]
*** Audio Plugin v0.5 by Incognito loaded ***
[01:21:26] Loaded.
[01:21:26] Loading plugin: nativechecker
[01:21:26] Loaded.
[01:21:26] Loaded 5 plugins.
[01:21:26]
[01:21:26] Ban list
[01:21:26] --------
[01:21:26] Loaded: samp.ban
[01:21:26]
[01:21:26]
[01:21:26] Filterscripts
[01:21:26] ---------------
[01:21:26] Loading filterscript 'yom_buttons.amx'...
[01:21:26] Loading filterscript 'gcustom.amx'...
[01:21:26] Loaded 2 filterscripts.
[01:21:26] Error: Function not registered: 'mysql_tquery'
[01:21:26] Error: Function not registered: 'mysql_escape_string'
[01:21:26] Error: Function not registered: 'cache_get_data'
[01:21:26] Error: Function not registered: 'cache_get_field_content'
[01:21:26] Error: Function not registered: 'mysql_stat'
[01:21:26] Error: Function not registered: 'mysql_log'
[01:21:26] Error: Function not registered: 'mysql_connect'
[01:21:26] Error: Function not registered: 'mysql_errno'
[01:21:26] Error: Function not registered: 'mysql_close'
[01:21:26] Error: Function not registered: 'cache_get_row'
[01:21:26] Error: Function not registered: 'cache_insert_id'
[01:21:26] Error: Function not registered: 'cache_affected_rows'
[01:21:26] Script[gamemodes/NGRP.amx]: Run time error 19: "File or function is not found"
[01:21:26] Number of vehicle models: 0
Habe den Plugin gewechselt sodass er lädt nun kommen diese fehler.
Zitat[01:25:32] Error: Function not registered: 'mysql_tquery'
[01:25:32] Error: Function not registered: 'mysql_escape_string'
[01:25:32] Error: Function not registered: 'mysql_log'
[01:25:32] Error: Function not registered: 'cache_insert_id'
[01:25:32] Error: Function not registered: 'cache_affected_rows'
Hallo liebe Breadfish Community,
Wenn ich meinen Server starte werden diese probleme angezeigt, weiß jemand vielleicht wie ich sie löse.
Ich bedanke mich schon mal im vorraus.
ZitatAlles anzeigen[01:19:18] Error: Function not registered: 'mysql_tquery'
[01:19:18] Error: Function not registered: 'mysql_escape_string'
[01:19:18] Error: Function not registered: 'cache_get_data'
[01:19:18] Error: Function not registered: 'cache_get_field_content'
[01:19:18] Error: Function not registered: 'mysql_stat'
[01:19:18] Error: Function not registered: 'mysql_log'
[01:19:18] Error: Function not registered: 'mysql_connect'
[01:19:18] Error: Function not registered: 'mysql_errno'
[01:19:18] Error: Function not registered: 'mysql_close'
[01:19:18] Error: Function not registered: 'cache_get_row'
[01:19:18] Error: Function not registered: 'cache_insert_id'
[01:19:18] Error: Function not registered: 'cache_affected_rows'
LG
hab nicht richtig gelesen und mich vertan. Versuchs mal so
Edit: Zeig mal 5-10 zeilen über dem case DIALOG...
case DIALOG_GROUP_EDITDIV: {
new
iGroupID = GetPVarInt(playerid, "Group_EditID"),
iDivID = GetPVarInt(playerid, "Group_EditDiv"),
szTitle[32 + GROUP_MAX_NAME_LEN];
if(response) {
if(strlen(inputtext) >= GROUP_MAX_DIV_LEN) {
format(szTitle, sizeof szTitle, "Edit Group Division (%i) {%s}(%s)", iDivID + 1, Group_NumToDialogHex(arrGroupData[iGroupID][g_hDutyColour]), arrGroupData[iGroupID][g_szGroupName]);
return ShowPlayerDialog(playerid, DIALOG_GROUP_EDITDIV, DIALOG_STYLE_INPUT, szTitle, "The specified name must be less than "#GROUP_MAX_DIV_LEN" characters in length.\n\nSpecify a division name (or none to disable it).", "Confirm", "Cancel");
}
arrGroupDivisions[iGroupID][iDivID][0] = 0;
if(!isnull(inputtext)) //mysql_escape_string(inputtext, arrGroupDivisions[iGroupID][iDivID]);
}
new
szDialog[(GROUP_MAX_DIV_LEN + 8) * MAX_GROUP_DIVS];
for(new i = 0; i != MAX_GROUP_DIVS; ++i) {
format(szDialog, sizeof szDialog, "%s\n(%i) %s", szDialog, i + 1, ((arrGroupDivisions[iGroupID][i][0]) ? (arrGroupDivisions[iGroupID][i]) : ("{AAAAAA}(undefined){FFFFFF}")));
}
format(szTitle, sizeof szTitle, "Edit Group Divisions {%s}(%s)", Group_NumToDialogHex(arrGroupData[iGroupID][g_hDutyColour]), arrGroupData[iGroupID][g_szGroupName]);
ShowPlayerDialog(playerid, DIALOG_GROUP_EDITDIVS, DIALOG_STYLE_LIST, szTitle, szDialog, "Select", "Cancel");
DeletePVar(playerid, "Group_EditDiv");
}
Hallo, wisst ihr vielleicht wo das Problem liegt? Danke im vorraus.
ZitatC:\Users\izseonna\Desktop\Next Generation Gaming\gamemodes\EGRP.pwn(106516) : warning 217: loose indentation
C:\Users\izseonna\Desktop\Next Generation Gaming\gamemodes\EGRP.pwn(106516) : error 014: invalid statement; not in switch
C:\Users\izseonna\Desktop\Next Generation Gaming\gamemodes\EGRP.pwn(106516) : warning 215: expression has no effect
C:\Users\izseonna\Desktop\Next Generation Gaming\gamemodes\EGRP.pwn(106516) : error 001: expected token: ";", but found ":"
C:\Users\izseonna\Desktop\Next Generation Gaming\gamemodes\EGRP.pwn(106516) : error 029: invalid expression, assumed zero
C:\Users\izseonna\Desktop\Next Generation Gaming\gamemodes\EGRP.pwn(106516) : fatal error 107: too many error messages on one line
case DIALOG_GROUP_LOCKERS: {
new
iGroupID = GetPVarInt(playerid, "Group_EditID"),
szTitle[32 + GROUP_MAX_NAME_LEN];
if(response)
{
format(szTitle, sizeof szTitle, "Edit Group Locker Position {%s}(%s)", Group_NumToDialogHex(arrGroupData[iGroupID][g_hDutyColour]), arrGroupData[iGroupID][g_szGroupName]);
if (listitem == MAX_GROUP_LOCKERS)
{
ShowPlayerDialog(playerid, DIALOG_GROUP_LOCKERDELETECONF, DIALOG_STYLE_MSGBOX, szTitle, "{FFFFFF}Are you sure you want to delete ALL of the lockers for this group?", "Cancel", "Confirm");
return 1;
}
else
{
SetPVarInt(playerid, "Group_EditLocker", listitem);
ShowPlayerDialog(playerid, DIALOG_GROUP_LOCKERACTION, DIALOG_STYLE_LIST, szTitle, "Move Locker (to your current position)\nDelete Locker", "Select", "Cancel");
return 1;
}
}
return Group_DisplayDialog(playerid, iGroupID);
}
dies hier ?
enum bizInfo
{
bType,
bStatus,
bOwner[32],
Float:bX,
Float:bY,
Float:bZ,
Float:bA,
Float: bInteriorX,
Float: bInteriorY,
Float: bInteriorZ,
Float: bInteriorA,
bPickup,
bMoney,
bProducts,
Text3D:bText,
bSold,
bLevel,
bPrice,
bAP
}
new BizInfo[MAX_BIZ][bizInfo];
Was muss ich hier ändern dass es z.B der Biz ID 1 den betrag einzahlt was der Spieler zahlen muss.
forward ReFill(playerid);
public ReFill(playerid)
{
if(!IsAtFuelStation(playerid) || !IsPlayerInAnyVehicle(playerid) || VehicleFuel[GetPlayerVehicleID(playerid)] >= 100.0 || GetPlayerCash(playerid) < 1)
{
StopRefueling(playerid);
}
else
{
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective);
if(engine == VEHICLE_PARAMS_ON) return StopRefueling(playerid);
VehicleFuel[GetPlayerVehicleID(playerid)] += 1.0; RefuelingVehiclePrice[playerid] += 30;
if(VehicleFuel[GetPlayerVehicleID(playerid)] >= 100.0) VehicleFuel[GetPlayerVehicleID(playerid)] = 100.0;
}
return true;
}
Hallo ist es möglich dass das Geld nach dem Tanken einer bestimmten Business ID zugewiesen wird bzw. eingezahlt wird.
Wenn möglich könntet ihr mir ein bespiel zeigen ?
Danke.
Hab ich gelöst. . kann geschlossen werden, danke .
Hallo
Wisst ihr villt. wo mein fehler liegt?
(32645) : error 012: invalid function call, not a valid address
(32645) : warning 215: expression has no effect
(32645) : error 001: expected token: ";", but found ")"
(32645) : error 029: invalid expression, assumed zero
CMD:lspd(playerid, params[])
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if (IsPlayerInRangeOfPoint(playerid,3,255.3,77.4,1003.6) || IsPlayerInRangeOfPoint(playerid,3,-1616.1294,681.1594,7.1875) || IsPlayerInRangeOfPoint(playerid,3,327.05, 306.81, 999.14) || IsPlayerInRangeOfPoint(playerid,3,264.29, 109.84, 1004.62) || IsPlayerInRangeOfPoint(playerid, 5.0, -2043.527832, -189.208435, 985.183105) || IsPlayerInRangeOfPoint(playerid, 5.0, 1112.7, -2055.8, 1409.7))
{
new string[128];
format(string,sizeof(string),"%d", Crate1(playerid);
ShowPlayerDialog(playerid, DUTYMENU, DIALOG_STYLE_LIST, string,"Duty\nEquipment\nSWAT\nUniform\nUndercover\nClear Suspect", "Select", "Cancel");
}
else
{
SendClientMessageEx(playerid, COLOR_WHITE, "You aren't in range of your LSPD lockers.");
}
}
return 1;
}
Danke
es war eig.. nicht für das Geld gedacht ... war nur ein beispiel..
danke ..
beim "LSPD Menu" also bei der überschrift ..
Ich habs so ..
CMD:lspd(playerid, params[])
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if (IsPlayerInRangeOfPoint(playerid,3,255.3,77.4,1003.6) || IsPlayerInRangeOfPoint(playerid,3,-1616.1294,681.1594,7.1875) || IsPlayerInRangeOfPoint(playerid,3,327.05, 306.81, 999.14) || IsPlayerInRangeOfPoint(playerid,3,264.29, 109.84, 1004.62) || IsPlayerInRangeOfPoint(playerid, 5.0, -2043.527832, -189.208435, 985.183105) || IsPlayerInRangeOfPoint(playerid, 5.0, 1112.7, -2055.8, 1409.7))
{
ShowPlayerDialog(playerid, DUTYMENU, DIALOG_STYLE_LIST, "LSPD Menu","Duty\nEquipment\nSWAT\nUniform\nUndercover\nClear Suspect", "Select", "Cancel");
}
else
{
SendClientMessageEx(playerid, COLOR_WHITE, "You aren't in range of your LSPD lockers.");
}
}
return 1;
}
Was muss ich machen dass man z.b mein Geld in einem Dialog sehen kann ..
Bild