strtok(const string[], &index){new length = strlen(string);while ((index < length) && (string[index] <= \' \')){index++;}new offset = index;new result[20];while ((index < length) && (string[index] > \' \') && ((index - offset) < (sizeof(result) - 1))){result[index - offset] = string[index];index++;}result[index - offset] = EOS;return result;}
{ index++;}[/quote]Ezt köszönöm!
...\\pawno\\include\\YSI\\y_debug.inc(395) : error 036: empty statement...\\pawno\\include\\YSI\\y_debug.inc(395) : error 036: empty statement...\\pawno\\include\\YSI\\y_iterate.inc(623) : error 036: empty statement...\\pawno\\include\\YSI\\y_iterate.inc(623) : error 036: empty statement...\\pawno\\include\\YSI\\y_iterate.inc(644) : error 036: empty statement...\\pawno\\include\\YSI\\y_iterate.inc(644) : error 036: empty statement...\\pawno\\include\\YSI\\y_iterate.inc(677) : error 036: empty statement...\\pawno\\include\\YSI\\y_iterate.inc(677) : error 036: empty statement...\\pawno\\include\\YSI\\y_iterate.inc(778) : error 036: empty statement...\\pawno\\include\\YSI\\y_iterate.inc(778) : error 036: empty statement...\\pawno\\include\\YSI\\y_iterate.inc(803) : error 036: empty statement...\\pawno\\include\\YSI\\y_iterate.inc(803) : error 036: empty statement...\\pawno\\include\\YSI\\y_iterate.inc(867) : error 036: empty statement...\\include\\YSI\\y_iterate.inc(867) : error 036: empty statement
Másolj forráskódot a kérdéses sorokról és környékükrõl, megjegyzéssel jelölve a hibában is szereplõ sorokat, pawn code tagbe téve.
P:F(\"YSI_FILTERSCRIPT == 0\"); // y_debug.inc(395) : error 036: empty statementwhile (s != 10000000) ++s;#emit CONST.pri 0#emit SCTRL 6return 1;
#if !defined BOTSYNC_IS_BOTpublic OnPlayerConnect(playerid){P:2(\"Iter_OnPlayerConnect: %d\", playerid); // y_iterate.inc(623) : error 036: empty statement#if defined _FOREACH_BOT if (!IsPlayerNPC(playerid)) { Itter_Add(Player, playerid); } #if !defined FOREACH_NO_BOTS else { Itter_Add(Bot, playerid); } #pragma tabsize 4 Itter_Add(Character, playerid); #endif#else Itter_Add(Player, playerid);#endif
P:2(\"Iter_OnPlayerConnect end\"); // y_iterate.inc(644) : error 036: empty statement#if defined Itter_OnPlayerConnect return Itter_OnPlayerConnect(playerid);#else return 1;#endif}
#if !defined BOTSYNC_IS_BOTpublic OnFilterScriptInit(){P:1(\"Iter_OnFilterScriptInit start: %d\", MAX_PLAYERS); // y_iterate.inc(677) : error 036: empty statement//if (funcidx(YSI_gsOnPlayerDisconnect) != -1)//{// YSI_g_sCallbacks |= 1;//}//if (funcidx(YSI_gsOnPlayerConnect) != -1)//{// YSI_g_sCallbacks |= 2;//}#if defined _FOREACH_BOT && !defined FOREACH_NO_BOTS Bot@YSII_Cg = _Y_ITER_C3:0; Character@YSII_Cg = _Y_ITER_C3:0; new lastBot = MAX_PLAYERS, lastCharacter = MAX_PLAYERS;#endif
#if !defined BOTSYNC_IS_BOTpublic OnGameModeInit(){P:1(\"Iter_OnGameModeInit start: %d\", MAX_PLAYERS); // y_iterate.inc(778) : error 036: empty statement
#if defined _YSI_SPECIAL_DEBUG for (new i = 0; i != MAX_PLAYERS; ++i) { Player@YSII_Ag = i + 1; } Player@YSII_Ag[MAX_PLAYERS] = 0; Player@YSII_Cg = _Y_ITER_C3:MAX_PLAYERS; #endif P:1(\"Iter_OnGameModeInit: first\"); // y_iterate.inc(803) : error 036: empty statement return 1;}
#if defined _FOREACH_BOT && !defined FOREACH_NO_BOTS Bot@YSII_Ag[lastPlayer] = MAX_PLAYERS; Character@YSII_Ag[lastPlayer] = MAX_PLAYERS;#endifPlayer@YSII_Ag[lastPlayer] = MAX_PLAYERS;P:1(\"Iter_OnGameModeInit: lastplayer = %d\", lastPlayer); // y_iterate.inc(867) : error 036: empty statementCallLocalFunction(YSI_gsOnGameModeInit, YSI_gsSpecifier@);
CMD:frakciohelp(playerid,params[]){if(IsPlayerConnected(playerid) && Belepve[playerid] == 1){switch(JatekosInfo[playerid][Frakcio]){ case 1: { SendClientMessage(playerid,KEK, \"Rendõrparancsok:\"); SendClientMessage(playerid,KEK, \"/szolgalat,/nyomoz,/szonda\"); SendClientMessage(playerid,KEK, \"/gov, /bilincsel, /birsag\"); } case 2: { SendClientMessage(playerid,-1, \"Mentõparancsok:\"); SendClientMessage(playerid,-1, \"/felsegit, /meggyogyit\"); SendClientMessage(playerid,-1, \"/szolgalat, /gov\"); } case 3: { SendClientMessage(playerid,PIROS, \"Autószerelõparancsok:\"); SendClientMessage(playerid,PIROS, \"/tuning, /neonfelrak, /neonleszed\"); SendClientMessage(playerid,PIROS, \"/megjavit, /atfest, /szolgalat, /gov\"); }} else SendClientMessage(playerid,PIROS, \"Nem vagy egy frakció tagja sem!\");//601-es sor, ahol a hibát találja.}else SendClientMessage(playerid,PIROS,\"Nem vagy bejelentkezve!\");return 1;}
hFrakcio.pwn(601) : error 029: invalid expression, assumed zero
error 035: argument type mismatch (argument 3)
GetPlayerObjectPos(playerid,objectid, X, Y, Z);
new Float:X, Float:Y, Float:Z;
error 047: array sizes do not match, or destination array is too small
INI_ParseFile(file, \"LoadVehicleData\", .bExtra = true, .extra = vehicleID);VehicleCreate(CarInfo[vehicleID][cModel], CarInfo[vehicleID][cLoc], CarInfo[vehicleID][cSzin1], CarInfo[vehicleID][cSzin2],CarInfo[vehicleID][cMegveve], CarInfo[vehicleID][cTulaj], CarInfo[vehicleID][cInt], CarInfo[vehicleID][cWorld], CarInfo[vehicleID][cZar],CarInfo[vehicleID][cAra], CarInfo[vehicleID][cSerules], CarInfo[vehicleID][cPaintjob], CarInfo[vehicleID][cTuning],CarInfo[vehicleID][cLehetosegek], CarInfo[vehicleID][cAllapot], CarInfo[vehicleID][cLeteve]);
Az X, az Y és a Z változó valós szám? Vagyis ez pawn nyelv, tehát float? new Float:X, Float:Y, Float:Z;
if(IsKeyJustDown(KEY_SPRINT,newkeys,oldkeys))