new kerdo[5][2] ={ {\"Karcsi\",\"1.2.5.5\"}, {\"Pista\",\"1.1.1.2\"}, {\"János\",\"3.4.9.8\"}, {\"Uborka\",\"5.2.3.12\"}, {\"Marci\",\"3.8.4.3\"}};new kerdok[MAX_PLAYERS];
public OnPlayerConnect(playerid){ new en = GetPlayerName(playerid,lognev,sizeof(lognev)); new en1 = GetPlayerIp(playerid,logip,sizeof(logip)); new kerd = kerdok[playerid]; if(en == kerdo[kerd][0]) {msg(playerid,Feher,\"NPC karakter\");if(en1 == kerdo[kerd][1]){ msg(playerid,Feher,\"NPC ip \");}else{msg(playerid,Feher,\"Nem NPC ip\");}}else{msg(playerid,Feher,\"Nem NPC karakter!\");}return 1;}
és az a baj h valamiért nem jó... biztos rosszúl írtam vagy benéztem, de remélem valaki tud segíteni
public OnPlayerConnect(playerid){ GetPlayerName(playerid,lognev,sizeof(lognev)); GetPlayerIp(playerid,logip,sizeof(logip)); for(new sor = 0; sor < sizeof(kerdo); sor++) { if (strcmp(lognev,kerdo[sor][0]) == 0) { msg(playerid,Feher,\"NPC karakter\"); if (strcmp(logip,kerdo[sor][1]) == 0) msg(playerid,Feher,\"NPC ip \"); else msg(playerid,Feher,\"Nem NPC ip\"); } else msg(playerid,Feher,\"Nem NPC karakter!\"); } return 1;}
error 018: initialization data exceeds declared sizeerror 035: argument type mismatch (argument 1)error 035: argument type mismatch (argument 1) [/quote]sikerűlt leredukálnom 1 errorra: error 018: initialization data exceeds declared size de ez pont ott van ahol a név meg az ip (tömb)
error 018: initialization data exceeds declared size
new kerdo[5][2] =
new kerdo[5][2][24] =