public OnPlayerExitVehicle(playerid, vehicleid) { new vehicleid1 = GetPlayerVehicleID(playerid); if( GetVehicleModel(vehicleid1) == 598) { if(pi[playerid][admin] >= 1 || pi[playerid][rendor] >= 1) { }else{ RemovePlayerFromVehicle(playerid);} } if( GetVehicleModel(vehicleid1) == 599 ) { if(pi[playerid][admin] >= 1 || pi[playerid][rendor] >= 1) { }else{ RemovePlayerFromVehicle(playerid);} } if( GetVehicleModel(vehicleid1) == 416 ) { if(pi[playerid][admin] >= 1 || pi[playerid][mento] >= 1) { }else{ RemovePlayerFromVehicle(playerid); } } } return 1; }
public OnPlayerExitVehicle( playerid, vehicleid ){ if( GetPlayerState(playerid) == PLAYER_STATE_DRIVER && vehicleid == pInfo[playerid][Kocsi] ) { new vname[64 + 1]; format( vname, 64, \"%03d.dat\", vehicleid ); new File: vfile = fopen(vname); #define LustaVagyok(%0) vInfo[pInfo[playerid][KocsiID]][%0] if( vfile ) { new vstring[128 + 1]; format( vstring, 128, \"%f,%f,%f,%f,%d,%d,%d,%s\", LustaVagyok(xpos), LustaVagyok(ypos), LustaVagyok(zpos), LustaVagyok(rot), LustaVagyok(color1), LustaVagyok(color2), LustaVagyok(model), LustaVagyok(plate) ); fwrite( vfile, vstring ); fclose( vfile ); } }new engine, lights, alarm, doors, bonnet, boot, objective;DisablePlayerCheckpoint(playerid);if (GetPlayerVehicleSeat(playerid) == 0){ vehicleid = GetPlayerVehicleID(playerid);if (AVehicleData[vehicleid][Fuel] > 0){ GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(vehicleid, 1, 1, alarm, doors, bonnet, boot, objective);}} if(newstate == PLAYER_STATE_DRIVER) { new vehicleid1 = GetPlayerVehicleID(playerid);Ere van az error if( GetVehicleModel(vehicleid1) == 598 ) { if(pi[playerid][admin] >= 1 || pi[playerid][rendor] >= 1) { }else { RemovePlayerFromVehicle(playerid);} } if( GetVehicleModel(vehicleid1) == 599 ) { if(pi[playerid][admin] >= 1 || pi[playerid][rendor] >= 1) { }else {RemovePlayerFromVehicle(playerid);} } if( GetVehicleModel(vehicleid1) == 416 ) { if(pi[playerid][admin] >= 1 || pi[playerid][mento] >= 1) { }else {RemovePlayerFromVehicle(playerid);} } } return 1;}
public OnPlayerStateChange(playerid, newstate, oldstate){ if( GetPlayerState(playerid) == PLAYER_STATE_DRIVER && vehicleid == pInfo[playerid][Kocsi] ) { new vname[64 + 1]; format( vname, 64, \"%03d.dat\", vehicleid ); new File: vfile = fopen(vname); #define LustaVagyok(%0) vInfo[pInfo[playerid][KocsiID]][%0] if( vfile ) { new vstring[128 + 1]; format( vstring, 128, \"%f,%f,%f,%f,%d,%d,%d,%s\", LustaVagyok(xpos), LustaVagyok(ypos), LustaVagyok(zpos), LustaVagyok(rot), LustaVagyok(color1), LustaVagyok(color2), LustaVagyok(model), LustaVagyok(plate) ); fwrite( vfile, vstring ); fclose( vfile ); } } new engine, lights, alarm, doors, bonnet, boot, objective; DisablePlayerCheckpoint(playerid); if (GetPlayerVehicleSeat(playerid) == 0) { vehicleid = GetPlayerVehicleID(playerid); if (AVehicleData[vehicleid][Fuel] > 0) { GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(vehicleid, 1, 1, alarm, doors, bonnet, boot, objective); } } if(newstate == PLAYER_STATE_DRIVER) { new vehicleid1 = GetPlayerVehicleID(playerid);Ere van az error if( GetVehicleModel(vehicleid1) == 598 ) { if(pi[playerid][admin] >= 1 || pi[playerid][rendor] >= 1) { }else { RemovePlayerFromVehicle(playerid);} } if( GetVehicleModel(vehicleid1) == 599 ) { if(pi[playerid][admin] >= 1 || pi[playerid][rendor] >= 1) { }else {RemovePlayerFromVehicle(playerid);} } if( GetVehicleModel(vehicleid1) == 416 ) { if(pi[playerid][admin] >= 1 || pi[playerid][mento] >= 1) { }else {RemovePlayerFromVehicle(playerid);} } } return 1;}
SetPlayerPos( playerid, P_X+1, P_Y+1, P_Z );
new Float:P_X, Float: P_Y, Float: P_Z;
#define P_X -253.8405#define P_Y 2603.2100#define P_Z 62.8582,12
Így van: #define P_X -253.8405#define P_Y 2603.2100#define P_Z 62.8582,12
#define P_X -253.8405#define P_Y 2603.2100#define P_Z 62.8582
E:\\Samp szerver\\pawno\\include\\YSI\\internal\\..\\y_debug.inc(276) : warning 219: local variable \"str\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\..\\y_debug.inc(338) : warning 219: local variable \"str\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\..\\y_debug.inc(343) : warning 219: local variable \"str\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\..\\y_amx.inc(409) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\..\\y_amx.inc(442) : warning 219: local variable \"str\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\..\\y_amx.inc(468) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\..\\y_amx.inc(508) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\..\\y_amx.inc(593) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\..\\y_amx.inc(644) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\..\\y_amx.inc(686) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\..\\y_amx.inc(778) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\..\\y_amx.inc(798) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\..\\y_amx.inc(818) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\..\\y_amx.inc(838) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\..\\y_amx.inc(858) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\..\\y_amx.inc(878) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\..\\y_amx.inc(892) : warning 219: local variable \"str\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\..\\y_amx.inc(896) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\..\\y_amx.inc(914) : warning 219: local variable \"str\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\..\\y_utils.inc(237) : warning 219: local variable \"str\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\..\\y_utils.inc(360) : warning 219: local variable \"str\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\..\\y_utils.inc(387) : warning 219: local variable \"str\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\..\\y_utils.inc(466) : warning 219: local variable \"str\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(192) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(221) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(363) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(425) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(496) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(564) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(751) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(814) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(876) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(956) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(1021) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(1084) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(1151) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(1214) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(1279) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(1344) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(1409) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(1474) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(1541) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(1606) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(1673) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(1736) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(1799) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(1862) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(1912) : warning 219: local variable \"cmd\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(1925) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(1988) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(2051) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(2114) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(2179) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(2244) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(2311) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(2378) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(2445) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(2514) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(2579) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(2649) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(2714) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(2777) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(2844) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(2911) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(2978) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(3041) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(3106) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(3171) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(3236) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(3301) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(3372) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(3439) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(3508) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI\\internal\\y_dohooks.inc(3726) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI/y_debug.inc(276) : warning 219: local variable \"str\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI/y_debug.inc(276) : error 084: state conflict: one of the states is already assigned to another implementation (symbol \"Debug_Print0\")E:\\Samp szerver\\pawno\\include\\YSI/y_debug.inc(338) : warning 219: local variable \"str\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI/y_debug.inc(338) : error 084: state conflict: one of the states is already assigned to another implementation (symbol \"Debug_Print0\")E:\\Samp szerver\\pawno\\include\\YSI/y_debug.inc(343) : warning 219: local variable \"str\" shadows a variable at a preceding levelE:\\Samp szerver\\pawno\\include\\YSI/y_debug.inc(343) : error 084: state conflict: one of the states is already assigned to another implementation (symbol \"Debug_Print0\")E:\\Samp szerver\\pawno\\include\\fixchars.h(89) : warning 219: local variable \"idx\" shadows a variable at a preceding levelE:\\Samp szerver\\tdm.pwn(312) : warning 217: loose indentationE:\\Samp szerver\\tdm.pwn(317) : warning 217: loose indentationE:\\Samp szerver\\tdm.pwn(325) : warning 217: loose indentationE:\\Samp szerver\\tdm.pwn(333) : warning 217: loose indentationE:\\Samp szerver\\tdm.pwn(366) : warning 235: public function lacks forward declaration (symbol \"OnPlayerCommandPerformed\")E:\\Samp szerver\\tdm.pwn(395) : warning 204: symbol is assigned a value that is never used: \"string\"E:\\Samp szerver\\tdm.pwn(669) : warning 217: loose indentationE:\\Samp szerver\\tdm.pwn(791) : warning 203: symbol is never used: \"cmd\"E:\\Samp szerver\\tdm.pwn(791) : warning 203: symbol is never used: \"idx\"E:\\Samp szerver\\tdm.pwn(791) : warning 203: symbol is never used: \"strtok\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 3 Errors.
new Bar:hungry[MAX_PLAYERS] = {INVALID_BAR_ID, ...};if(GetProgressBarValue(hungry[playerid]) <= 0)if(GetProgressBarValue(hungry[playerid]) <= 0)SetProgressBarValue(hungry[playerid], 0);SetProgressBarValue(hungry[playerid], GetProgressBarValue(hungry[playerid])-2);UpdateProgressBar(hungry[playerid], playerid); PInfo[playerid][Hunger] = floatround(GetProgressBarValue(hungry[playerid])); dini_IntSet(file,\"Hunger\",floatround(GetProgressBarValue(hungry[playerid])));hungry[playerid] = CreateProgressBar(528.00, 115.00, 76.50, 8.50, 0x0000BBAA, 100.0);ShowProgressBarForPlayer(playerid, hungry[playerid]);SetProgressBarValue(hungry[playerid], dini_Int(file,\"Hunger\"));SetProgressBarValue(hungry[playerid], 100); SetProgressBarValue(hungry[playerid], GetProgressBarValue(hungry[playerid])+15); SetProgressBarValue(hungry[playerid], GetProgressBarValue(hungry[playerid])+25); SetProgressBarValue(hungry[playerid], GetProgressBarValue(hungry[playerid])+12);
new na[MAX_PLAYER_NAME]; GetPlayerName(playerid, na, sizeof(na)) if (!IsRPName(na)) { SendClientMessage(playerid, 0xff0000ff, \"Ez egy RolePlay szerver, RP-s névvel lépj be!\"); return Kick(playerid); }