modom.pwn(276) : error 017: undefined symbol \"PlayerInfo\"modom.pwn(276) : warning 215: expression has no effectmodom.pwn(276) : error 001: expected token: \";\", but found \"]\"modom.pwn(276) : error 029: invalid expression, assumed zeromodom.pwn(276) : fatal error 107: too many error messages on one line
new String[50]; format(String, sizeof String, \"Russian Kills: %d\\r\\nAmerica 0 Kills: %d\", RussiaKills, AmericaKills); TextDrawDestroy(TextDrawScore); TextDrawScore = TextDrawCreate(640.0, 437.0, String); TextDrawUseBox(TextDrawScore, 1); TextDrawFont(TextDrawScore, 3); TextDrawSetShadow(TextDrawScore, 0); TextDrawSetOutline(TextDrawScore, 1); TextDrawBackgroundColor(TextDrawScore, 0x000000FF); TextDrawColor(TextDrawScore, 0xFFFFFFFF); TextDrawAlignment(TextDrawScore, 3); TextDrawShowForAll(TextDrawScore); return 1;
public OnPlayerSpawn() { //Ide a textdrawot. return 1;}
D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(632) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(633) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(634) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(635) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(636) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(637) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(638) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(639) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(640) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(641) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(642) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(643) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(644) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(645) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(646) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(647) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(648) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(649) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(650) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(651) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(652) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(653) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(654) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(655) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(656) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(657) : error 017: undefined symbol \"CreateDynamicObjectEx\"Compilation aborted.Pawn compiler 3.2.3664 Copyright (coffee) 1997-2006, ITB CompuPhase 26 Errors.
Sziasztok!Nekem ezt írja a pawno mikor mentem a módot D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(632) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(633) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(634) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(635) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(636) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(637) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(638) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(639) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(640) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(641) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(642) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(643) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(644) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(645) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(646) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(647) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(648) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(649) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(650) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(651) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(652) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(653) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(654) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(655) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(656) : error 017: undefined symbol \"CreateDynamicObjectEx\"D:\\kicsomagolás\\server1\\gamemodes\\PPFS.pwn(657) : error 017: undefined symbol \"CreateDynamicObjectEx\"Compilation aborted.Pawn compiler 3.2.3664 Copyright (coffee) 1997-2006, ITB CompuPhase 26 Errors.
# include <streamer># include <a_samp>
public OnPlayerUpdate(playerid){new Float:x, Float:y, Float:z;GetPlayerPos(playerid,x,y,z);if(1282.9401 <= y <= 1442.9170 || 1941.3424 <= x <= 2031.9501){ SendClientMessage(playerid,0x00FF00FF,\"Beléptél a Spawn területre!\"); SetPlayerHealth(playerid,98713); SendClientMessage(playerid,0x00FFB8FF,\"Mostmár örök életed van!\"); return 0;}else if{ SendClientMessage(playerid,0x0000FFFF,\"Kiléptél a Spawn területrõl!\"); SetPlayerHealth(playerid,100); SendClientMessage(playerid,0x0000FFFF,\"Mostmár nincs örök életed!\"); return 0;}return 1;}
new SpawnZonaban[MAX_PLAYERS], Float:KintElet[MAX_PLAYERS];public OnPlayerUpdate(playerid) {new Float:x, Float:y, Float:z;GetPlayerPos(playerid,x,y,z);if(1282.9401 <= y <= 1442.9170 || 1941.3424 <= x <= 2031.9501) { //Ha a spawn zónán belül van if(SpawnZonaban[playerid] == 0) { //... de a változója 0, akkor most lépett be. SendClientMessage(playerid,0x00FF00FF,\"Beléptél a Spawn területre!\"); SendClientMessage(playerid,0x00FFB8FF,\"Mostmár örök életed van!\"); //Kiírjuk neki és GetPlayerHealth(playerid, KintElet[playerid]); //Lekérjük az életét. } SetPlayerHealth(playerid,98713); //Akár most lépett be, akár nem, a zómán belül van, szóval a hpja max legyen. SpawnZonaban[playerid] = 1; //Ezt átállítjzk, hogy a fenti részt ne floodolhassa be.}else if(SpawnZonaban[playerid] == 1) { //Ha nincs a spawn zónában (else = a fenti ifre vonatkozó \"egyébként\"), de a változó szerint bent van.. még, azaz most lépett be.SendClientMessage(playerid,0x0000FFFF,\"Kiléptél a Spawn területrõl!\");SendClientMessage(playerid,0x0000FFFF,\"Mostmár nincs örök életed!\"); //Elküldjük az üzeneteket..SetPlayerHealth(playerid,KintElet[playerid]); //Az életét beállítjuk valamintSpawnZonaban[playerid] = 0; //A változót is, hogy ne fusson le többször.}return 1;}
D:\\Letöltések\\Untitled.pwn(34) : error 052: multi-dimensional arrays must be fully initializedPawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
error 021: symbol already defined: \"OnDialogResponse\"[/quote]Ez a sor a public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) alatti kapcsos zárójel.Mi okozza a hibát?Itt az egész kód:CMD:t(playerid, params[]){ new DialogString[1024], rC; rC = random(2); format( DialogString, 1024 , \"\" ); switch(rC) { case 0: { for( new i; i < sizeof( Teleportok ); i ++ ) { format( DialogString, sizeof( DialogString ), \"%s\\n{F70431}%s\" ,DialogString, Teleportok[ i ][ SCMTA ] ); } ShowPlayerDialog( playerid , DIALOG_TELE , DIALOG_STYLE_LIST , \"Teleportok listája\", DialogString , \"Teleport!\" , \"Maradok!\" ); } case 1: { for( new i; i < sizeof( Teleportok ); i ++ ) { format( DialogString, sizeof( DialogString ), \"%s\\n{39F704}%s\" ,DialogString, Teleportok[ i ][ SCMTA ] ); } ShowPlayerDialog( playerid , DIALOG_TELE , DIALOG_STYLE_LIST , \"Teleportok listája\", DialogString , \"Teleport!\" , \"Maradok!\" ); } } return 1;}public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){ if( dialogid == DIALOG_TELE ) { if( response ) { new JN[MAX_PLAYER_NAME], FSTRING[128]; GetPlayerName(playerid,JN,sizeof(JN)); if( GetPlayerState( playerid ) == PLAYER_STATE_DRIVER ) { new idxveh = GetPlayerVehicleID( playerid ); SetVehiclePos( idxveh, Teleportok[listitem][tX], Teleportok[listitem][tY], Teleportok[listitem][tZ]); SetVehicleZAngle( idxveh, Teleportok[listitem][tZA]); } else { SetPlayerPos( playerid,Teleportok[listitem][tX], Teleportok[listitem][tY], Teleportok[listitem][tZ]); SetPlayerFacingAngle( playerid, Teleportok[listitem][tZA]); } format(FSTRING,sizeof(FSTRING), \"[Teleport]: %s elment ide: %s\", JN, Teleportok[listitem][sCMTA]); SendClientMessageToAll( COLOR_PURPLE, FSTRING ); } } return 0;} Naplózva
CMD:t(playerid, params[]){ new DialogString[1024], rC; rC = random(2); format( DialogString, 1024 , \"\" ); switch(rC) { case 0: { for( new i; i < sizeof( Teleportok ); i ++ ) { format( DialogString, sizeof( DialogString ), \"%s\\n{F70431}%s\" ,DialogString, Teleportok[ i ][ SCMTA ] ); } ShowPlayerDialog( playerid , DIALOG_TELE , DIALOG_STYLE_LIST , \"Teleportok listája\", DialogString , \"Teleport!\" , \"Maradok!\" ); } case 1: { for( new i; i < sizeof( Teleportok ); i ++ ) { format( DialogString, sizeof( DialogString ), \"%s\\n{39F704}%s\" ,DialogString, Teleportok[ i ][ SCMTA ] ); } ShowPlayerDialog( playerid , DIALOG_TELE , DIALOG_STYLE_LIST , \"Teleportok listája\", DialogString , \"Teleport!\" , \"Maradok!\" ); } } return 1;}public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){ if( dialogid == DIALOG_TELE ) { if( response ) { new JN[MAX_PLAYER_NAME], FSTRING[128]; GetPlayerName(playerid,JN,sizeof(JN)); if( GetPlayerState( playerid ) == PLAYER_STATE_DRIVER ) { new idxveh = GetPlayerVehicleID( playerid ); SetVehiclePos( idxveh, Teleportok[listitem][tX], Teleportok[listitem][tY], Teleportok[listitem][tZ]); SetVehicleZAngle( idxveh, Teleportok[listitem][tZA]); } else { SetPlayerPos( playerid,Teleportok[listitem][tX], Teleportok[listitem][tY], Teleportok[listitem][tZ]); SetPlayerFacingAngle( playerid, Teleportok[listitem][tZA]); } format(FSTRING,sizeof(FSTRING), \"[Teleport]: %s elment ide: %s\", JN, Teleportok[listitem][sCMTA]); SendClientMessageToAll( COLOR_PURPLE, FSTRING ); } } return 0;}
Dupla hozzászólás automatikusan összefûzve. ( 2014. március 16. - 13:05:35 )Javítottam pár dolgot. 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;} Már csak 3 problémám maradt. error 027: invalid character constanterror 027: invalid character constanterror 029: invalid expression, assumed zero
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;}
error 027: invalid character constanterror 027: invalid character constanterror 029: invalid expression, assumed zero