new Float:RandomCP[][3] ={{1975.8439,-1306.2654,20.8422}, // Smoke_Leadó 1{1087.4849,-1226.8771,15.8203}, // Smoke_Leadó 2{-108.0777,-1573.6024,2.6172} // Smoke_Leadó 3};//----------------------------------------------------------public OnPlayerCommandText(playerid, cmdtext[]){new cmd[256+1];new idx;cmd = strtok(cmdtext, idx);if(strcmp(\"/buycigar\", cmd, true) == 0) { new iSeat = GetPlayerVehicleSeat(playerid); new rand = random(sizeof(RandomCP)); if (IsPlayerInRangeOfPoint(playerid, 10, 2792.9084,-2356.3008,13.6328)) if (IsPlayerInVehicle(playerid, smokev)) if (iSeat == 0)(117) if(gTeam[playerid] == TEAM_SMUGOFF) SetPlayerCheckpoint(playerid, RandomCP[rand][0], RandomCP[rand][1],RandomCP[rand][2], 3); gTeam[playerid] == TEAM_SMUGON;} else { SendClientMessage(playerid, COLOR_WHITE, \" Rossz helyen, vagy rossz autóban próbálkozol!\"); } return 1;}(131) if(strcmp(\"/sellcigar\", cmds, true) == 0){(133) if (IsPlayerInRangeOfPoint(playerid, 10, 1975.8439, -1306.2654, 20.8422);(134) if(gTeam[playerid] == TEAM_SMUGON)(135) if (IsPlayerInVehicle(playerid, smokev))(136) if (iSeat == 0) { DisablePlayerCheckpoint(playerid); gTeam[playerid] == TEAM_SMUGOFF; }(142) return 1;}//----------------------------------------------------------public OnPlayerSpawn(playerid){if(IsPlayerNPC(playerid)) return 1;[/quote]És itt vannak a hibakódok :[mod]Hm..[/mod] grandlarc.pwn(117) : warning 215: expression has no effectgrandlarc.pwn(131) : error 010: invalid function or declarationgrandlarc.pwn(133) : error 010: invalid function or declarationgrandlarc.pwn(134) : error 010: invalid function or declarationgrandlarc.pwn(135) : error 010: invalid function or declarationgrandlarc.pwn(136) : error 010: invalid function or declarationgrandlarc.pwn(142) : error 010: invalid function or declarationgrandlarc.pwn(184) : warning 215: expression has no effect //lényegtelengrandlarc.pwn(591) : warning 203: symbol is never used: \"gArmySpawns\" //ez isgrandlarc.pwn(591) : warning 203: symbol is never used: \"gMedicalSpawns\" // szint. úgygrandlarc.pwn(591) : warning 203: symbol is never used: \"gPoliceSpawns\" // ez is Elõre is köszönöm a válaszokat.
grandlarc.pwn(117) : warning 215: expression has no effectgrandlarc.pwn(131) : error 010: invalid function or declarationgrandlarc.pwn(133) : error 010: invalid function or declarationgrandlarc.pwn(134) : error 010: invalid function or declarationgrandlarc.pwn(135) : error 010: invalid function or declarationgrandlarc.pwn(136) : error 010: invalid function or declarationgrandlarc.pwn(142) : error 010: invalid function or declarationgrandlarc.pwn(184) : warning 215: expression has no effect //lényegtelengrandlarc.pwn(591) : warning 203: symbol is never used: \"gArmySpawns\" //ez isgrandlarc.pwn(591) : warning 203: symbol is never used: \"gMedicalSpawns\" // szint. úgygrandlarc.pwn(591) : warning 203: symbol is never used: \"gPoliceSpawns\" // ez is
if(strcmp(\"/sellcigar\", cmd, true) == 0){if (IsPlayerInRangeOfPoint(playerid, 10, 1975.8439, -1306.2654, 20.8422) && gTeam[playerid] == TEAM_SMUGON && IsPlayerInVehicle(playerid, smokev) && iSeat == 0){DisablePlayerCheckpoint(playerid);gTeam[playerid] == TEAM_SMUGOFF;}return 1;}
if(strcmp(\"/sellcigar\", cmd, true) == 0) // ez a 130-as sor
if (IsPlayerInRangeOfPoint(playerid, 10, 1975.8439, -1306.2654, 20.8422 && gTeam[playerid] == TEAM_SMUGON && IsPlayerInVehicle(playerid, smokev) && iSeat == 0) // ez a 132-es
return 1; // ez a 137-es sor.
if(strcmp(\"/sellcigar\", cmd, true) == 0) // ez a 130-as sor if (IsPlayerInRangeOfPoint(playerid, 10, 1975.8439, -1306.2654, 20.8422 && gTeam[playerid] == TEAM_SMUGON && IsPlayerInVehicle(playerid, smokev) && iSeat == 0) // ez a 132-es return 1; // ez a 137-es sor. // ScreaM: Ez teljesen jó...
return 1; // ez a 137-es sor. // ScreaM: Ez teljesen jó...
if(IsPlayerInRangeOfPoint(playerid, 10, 1975.8439, -1306.2654, 20.8422) && gTeam[playerid] == TEAM_SMUGON && IsPlayerInVehicle(playerid, smokev) && iSeat == 0)
gTeam[playerid] == TEAM_SMUGOFF;
gTeam[playerid] = TEAM_SMUGOFF;